2021-07-13 13:18:03 +02:00
|
|
|
error: expected one of `@` or `|`, found `:`
|
2021-07-15 08:36:19 -07:00
|
|
|
--> $DIR/issue-87086-colon-path-sep.rs:17:12
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
|
|
|
|
LL | Foo:Bar => {}
|
2023-02-02 16:42:21 +00:00
|
|
|
| ^--- specifying the type of a pattern isn't supported
|
2021-07-13 13:18:03 +02:00
|
|
|
| |
|
|
|
|
|
| expected one of `@` or `|`
|
2023-02-02 16:42:21 +00:00
|
|
|
|
|
|
|
|
|
help: maybe write a path separator here
|
|
|
|
|
|
|
2025-02-13 02:54:07 +00:00
|
|
|
LL | Foo::Bar => {}
|
2025-02-13 03:21:25 +00:00
|
|
|
| +
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
|
|
|
error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `{`, or `|`, found `:`
|
2021-07-15 08:36:19 -07:00
|
|
|
--> $DIR/issue-87086-colon-path-sep.rs:23:17
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
2021-07-15 08:36:19 -07:00
|
|
|
LL | qux::Foo:Bar => {}
|
2023-02-02 16:42:21 +00:00
|
|
|
| ^--- specifying the type of a pattern isn't supported
|
2021-07-13 13:18:03 +02:00
|
|
|
| |
|
|
|
|
|
| expected one of 8 possible tokens
|
2023-02-02 16:42:21 +00:00
|
|
|
|
|
|
|
|
|
help: maybe write a path separator here
|
|
|
|
|
|
|
2025-02-13 02:54:07 +00:00
|
|
|
LL | qux::Foo::Bar => {}
|
2025-02-13 03:21:25 +00:00
|
|
|
| +
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
|
|
|
error: expected one of `@` or `|`, found `:`
|
2021-07-15 08:36:19 -07:00
|
|
|
--> $DIR/issue-87086-colon-path-sep.rs:29:12
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
2021-07-15 08:36:19 -07:00
|
|
|
LL | qux:Foo::Baz => {}
|
2023-02-02 16:42:21 +00:00
|
|
|
| ^-------- specifying the type of a pattern isn't supported
|
2021-07-13 13:18:03 +02:00
|
|
|
| |
|
|
|
|
|
| expected one of `@` or `|`
|
2023-02-02 16:42:21 +00:00
|
|
|
|
|
|
|
|
|
help: maybe write a path separator here
|
|
|
|
|
|
|
2025-02-13 02:54:07 +00:00
|
|
|
LL | qux::Foo::Baz => {}
|
2025-02-13 03:21:25 +00:00
|
|
|
| +
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
|
|
|
error: expected one of `@` or `|`, found `:`
|
2021-07-15 08:36:19 -07:00
|
|
|
--> $DIR/issue-87086-colon-path-sep.rs:35:12
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
2021-07-15 08:36:19 -07:00
|
|
|
LL | qux: Foo::Baz if true => {}
|
2023-02-02 16:42:21 +00:00
|
|
|
| ^ -------- specifying the type of a pattern isn't supported
|
2021-07-13 13:18:03 +02:00
|
|
|
| |
|
|
|
|
|
| expected one of `@` or `|`
|
2023-02-02 16:42:21 +00:00
|
|
|
|
|
|
|
|
|
help: maybe write a path separator here
|
|
|
|
|
|
|
2025-02-13 03:07:18 +00:00
|
|
|
LL | qux::Foo::Baz if true => {}
|
|
|
|
|
| ~~
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
|
|
|
error: expected one of `@` or `|`, found `:`
|
2021-07-15 08:36:19 -07:00
|
|
|
--> $DIR/issue-87086-colon-path-sep.rs:40:15
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
2021-07-15 08:36:19 -07:00
|
|
|
LL | if let Foo:Bar = f() {
|
2023-02-02 16:42:21 +00:00
|
|
|
| ^--- specifying the type of a pattern isn't supported
|
2021-07-13 13:18:03 +02:00
|
|
|
| |
|
|
|
|
|
| expected one of `@` or `|`
|
2023-02-02 16:42:21 +00:00
|
|
|
|
|
|
|
|
|
help: maybe write a path separator here
|
|
|
|
|
|
|
2025-02-13 02:54:07 +00:00
|
|
|
LL | if let Foo::Bar = f() {
|
2025-02-13 03:21:25 +00:00
|
|
|
| +
|
2021-07-13 13:18:03 +02:00
|
|
|
|
2021-07-15 08:36:19 -07:00
|
|
|
error: expected one of `@` or `|`, found `:`
|
2024-02-01 22:45:00 +00:00
|
|
|
--> $DIR/issue-87086-colon-path-sep.rs:49:16
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
2021-07-15 08:36:19 -07:00
|
|
|
LL | ref qux: Foo::Baz => {}
|
2023-02-02 16:42:21 +00:00
|
|
|
| ^ -------- specifying the type of a pattern isn't supported
|
2021-07-15 08:36:19 -07:00
|
|
|
| |
|
|
|
|
|
| expected one of `@` or `|`
|
2023-02-02 16:42:21 +00:00
|
|
|
|
|
|
|
|
|
help: maybe write a path separator here
|
|
|
|
|
|
|
2025-02-13 03:07:18 +00:00
|
|
|
LL | ref qux::Foo::Baz => {}
|
|
|
|
|
| ~~
|
2021-07-13 13:18:03 +02:00
|
|
|
|
2021-07-15 08:36:19 -07:00
|
|
|
error: expected one of `@` or `|`, found `:`
|
2024-02-01 22:45:00 +00:00
|
|
|
--> $DIR/issue-87086-colon-path-sep.rs:58:16
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
2021-07-15 08:36:19 -07:00
|
|
|
LL | mut qux: Foo::Baz => {}
|
2023-02-02 16:42:21 +00:00
|
|
|
| ^ -------- specifying the type of a pattern isn't supported
|
2021-07-15 08:36:19 -07:00
|
|
|
| |
|
|
|
|
|
| expected one of `@` or `|`
|
2023-02-02 16:42:21 +00:00
|
|
|
|
|
|
|
|
|
help: maybe write a path separator here
|
|
|
|
|
|
|
2025-02-13 03:07:18 +00:00
|
|
|
LL | mut qux::Foo::Baz => {}
|
|
|
|
|
| ~~
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
|
|
|
error: expected one of `@` or `|`, found `:`
|
2024-02-01 22:45:00 +00:00
|
|
|
--> $DIR/issue-87086-colon-path-sep.rs:69:12
|
2021-07-13 13:18:03 +02:00
|
|
|
|
|
|
|
|
|
LL | Foo:Bar::Baz => {}
|
2023-02-02 16:42:21 +00:00
|
|
|
| ^-------- specifying the type of a pattern isn't supported
|
2021-07-13 13:18:03 +02:00
|
|
|
| |
|
|
|
|
|
| expected one of `@` or `|`
|
2023-02-02 16:42:21 +00:00
|
|
|
|
|
|
|
|
|
help: maybe write a path separator here
|
|
|
|
|
|
|
2025-02-13 02:54:07 +00:00
|
|
|
LL | Foo::Bar::Baz => {}
|
2025-02-13 03:21:25 +00:00
|
|
|
| +
|
2021-07-13 13:18:03 +02:00
|
|
|
|
2021-07-15 08:36:19 -07:00
|
|
|
error: expected one of `@` or `|`, found `:`
|
2024-02-01 22:45:00 +00:00
|
|
|
--> $DIR/issue-87086-colon-path-sep.rs:75:12
|
2021-07-15 08:36:19 -07:00
|
|
|
|
|
|
|
|
|
LL | Foo:Bar => {}
|
2023-02-02 16:42:21 +00:00
|
|
|
| ^--- specifying the type of a pattern isn't supported
|
2021-07-15 08:36:19 -07:00
|
|
|
| |
|
|
|
|
|
| expected one of `@` or `|`
|
2023-01-15 22:36:46 +00:00
|
|
|
|
|
2023-02-02 16:42:21 +00:00
|
|
|
help: maybe write a path separator here
|
|
|
|
|
|
|
2025-02-13 02:54:07 +00:00
|
|
|
LL | Foo::Bar => {}
|
2025-02-13 03:21:25 +00:00
|
|
|
| +
|
2021-07-15 08:36:19 -07:00
|
|
|
|
2024-02-01 22:45:00 +00:00
|
|
|
warning: irrefutable `if let` pattern
|
|
|
|
|
--> $DIR/issue-87086-colon-path-sep.rs:40:8
|
|
|
|
|
|
|
|
|
|
|
LL | if let Foo:Bar = f() {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: this pattern will always match, so the `if let` is useless
|
|
|
|
|
= help: consider replacing the `if let` with a `let`
|
|
|
|
|
= note: `#[warn(irrefutable_let_patterns)]` on by default
|
|
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors; 1 warning emitted
|
2021-07-13 13:18:03 +02:00
|
|
|
|