@@ -2,89 +2,118 @@ error: expected one of `@` or `|`, found `:`
22 --> $DIR/issue-87086-colon-path-sep.rs:17:12
33 |
44LL | Foo:Bar => {}
5- | ^
5+ | ^--- specifying the type of a pattern isn't supported
66 | |
77 | expected one of `@` or `|`
8- | help: maybe write a path separator here: `::`
8+ |
9+ help: maybe write a path separator here
10+ |
11+ LL | Foo::Bar => {}
12+ | ~~
913
1014error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `{`, or `|`, found `:`
1115 --> $DIR/issue-87086-colon-path-sep.rs:23:17
1216 |
1317LL | qux::Foo:Bar => {}
14- | ^
18+ | ^--- specifying the type of a pattern isn't supported
1519 | |
1620 | expected one of 8 possible tokens
17- | help: maybe write a path separator here: `::`
21+ |
22+ help: maybe write a path separator here
23+ |
24+ LL | qux::Foo::Bar => {}
25+ | ~~
1826
1927error: expected one of `@` or `|`, found `:`
2028 --> $DIR/issue-87086-colon-path-sep.rs:29:12
2129 |
2230LL | qux:Foo::Baz => {}
23- | ^
31+ | ^-------- specifying the type of a pattern isn't supported
2432 | |
2533 | expected one of `@` or `|`
26- | help: maybe write a path separator here: `::`
34+ |
35+ help: maybe write a path separator here
36+ |
37+ LL | qux::Foo::Baz => {}
38+ | ~~
2739
2840error: expected one of `@` or `|`, found `:`
2941 --> $DIR/issue-87086-colon-path-sep.rs:35:12
3042 |
3143LL | qux: Foo::Baz if true => {}
32- | ^
44+ | ^ -------- specifying the type of a pattern isn't supported
3345 | |
3446 | expected one of `@` or `|`
35- | help: maybe write a path separator here: `::`
47+ |
48+ help: maybe write a path separator here
49+ |
50+ LL | qux::Foo::Baz if true => {}
51+ | ~~
3652
3753error: expected one of `@` or `|`, found `:`
3854 --> $DIR/issue-87086-colon-path-sep.rs:40:15
3955 |
4056LL | if let Foo:Bar = f() {
41- | ^
57+ | ^--- specifying the type of a pattern isn't supported
4258 | |
4359 | expected one of `@` or `|`
44- | help: maybe write a path separator here: `::`
60+ |
61+ help: maybe write a path separator here
62+ |
63+ LL | if let Foo::Bar = f() {
64+ | ~~
4565
4666error: expected one of `@` or `|`, found `:`
4767 --> $DIR/issue-87086-colon-path-sep.rs:48:16
4868 |
4969LL | ref qux: Foo::Baz => {}
50- | ^
70+ | ^ -------- specifying the type of a pattern isn't supported
5171 | |
5272 | expected one of `@` or `|`
53- | help: maybe write a path separator here: `::`
73+ |
74+ help: maybe write a path separator here
75+ |
76+ LL | ref qux::Foo::Baz => {}
77+ | ~~
5478
5579error: expected one of `@` or `|`, found `:`
5680 --> $DIR/issue-87086-colon-path-sep.rs:57:16
5781 |
5882LL | mut qux: Foo::Baz => {}
59- | ^
83+ | ^ -------- specifying the type of a pattern isn't supported
6084 | |
6185 | expected one of `@` or `|`
62- | help: maybe write a path separator here: `::`
86+ |
87+ help: maybe write a path separator here
88+ |
89+ LL | mut qux::Foo::Baz => {}
90+ | ~~
6391
6492error: expected one of `@` or `|`, found `:`
6593 --> $DIR/issue-87086-colon-path-sep.rs:68:12
6694 |
6795LL | Foo:Bar::Baz => {}
68- | ^
96+ | ^-------- specifying the type of a pattern isn't supported
6997 | |
7098 | expected one of `@` or `|`
71- | help: maybe write a path separator here: `::`
99+ |
100+ help: maybe write a path separator here
101+ |
102+ LL | Foo::Bar::Baz => {}
103+ | ~~
72104
73105error: expected one of `@` or `|`, found `:`
74- --> $DIR/issue-87086-colon-path-sep.rs:75 :12
106+ --> $DIR/issue-87086-colon-path-sep.rs:74 :12
75107 |
76108LL | Foo:Bar => {}
77- | ^
109+ | ^--- specifying the type of a pattern isn't supported
78110 | |
79111 | expected one of `@` or `|`
80- | help: maybe write a path separator here: `::`
81-
82- error[E0433]: failed to resolve: `Bar` is a variant, not a module
83- --> $DIR/issue-87086-colon-path-sep.rs:68:13
84112 |
85- LL | Foo:Bar::Baz => {}
86- | ^^^ `Bar` is a variant, not a module
113+ help: maybe write a path separator here
114+ |
115+ LL | Foo::Bar => {}
116+ | ~~
87117
88- error: aborting due to 10 previous errors
118+ error: aborting due to 9 previous errors
89119
90- For more information about this error, try `rustc --explain E0433`.
0 commit comments