@@ -2,89 +2,118 @@ error: expected one of `@` or `|`, found `:`
2
2
--> $DIR/issue-87086-colon-path-sep.rs:17:12
3
3
|
4
4
LL | Foo:Bar => {}
5
- | ^
5
+ | ^--- specifying the type of a pattern isn't supported
6
6
| |
7
7
| 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
+ | ~~
9
13
10
14
error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `{`, or `|`, found `:`
11
15
--> $DIR/issue-87086-colon-path-sep.rs:23:17
12
16
|
13
17
LL | qux::Foo:Bar => {}
14
- | ^
18
+ | ^--- specifying the type of a pattern isn't supported
15
19
| |
16
20
| 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
+ | ~~
18
26
19
27
error: expected one of `@` or `|`, found `:`
20
28
--> $DIR/issue-87086-colon-path-sep.rs:29:12
21
29
|
22
30
LL | qux:Foo::Baz => {}
23
- | ^
31
+ | ^-------- specifying the type of a pattern isn't supported
24
32
| |
25
33
| 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
+ | ~~
27
39
28
40
error: expected one of `@` or `|`, found `:`
29
41
--> $DIR/issue-87086-colon-path-sep.rs:35:12
30
42
|
31
43
LL | qux: Foo::Baz if true => {}
32
- | ^
44
+ | ^ -------- specifying the type of a pattern isn't supported
33
45
| |
34
46
| 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
+ | ~~
36
52
37
53
error: expected one of `@` or `|`, found `:`
38
54
--> $DIR/issue-87086-colon-path-sep.rs:40:15
39
55
|
40
56
LL | if let Foo:Bar = f() {
41
- | ^
57
+ | ^--- specifying the type of a pattern isn't supported
42
58
| |
43
59
| 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
+ | ~~
45
65
46
66
error: expected one of `@` or `|`, found `:`
47
67
--> $DIR/issue-87086-colon-path-sep.rs:48:16
48
68
|
49
69
LL | ref qux: Foo::Baz => {}
50
- | ^
70
+ | ^ -------- specifying the type of a pattern isn't supported
51
71
| |
52
72
| 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
+ | ~~
54
78
55
79
error: expected one of `@` or `|`, found `:`
56
80
--> $DIR/issue-87086-colon-path-sep.rs:57:16
57
81
|
58
82
LL | mut qux: Foo::Baz => {}
59
- | ^
83
+ | ^ -------- specifying the type of a pattern isn't supported
60
84
| |
61
85
| 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
+ | ~~
63
91
64
92
error: expected one of `@` or `|`, found `:`
65
93
--> $DIR/issue-87086-colon-path-sep.rs:68:12
66
94
|
67
95
LL | Foo:Bar::Baz => {}
68
- | ^
96
+ | ^-------- specifying the type of a pattern isn't supported
69
97
| |
70
98
| 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
+ | ~~
72
104
73
105
error: 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
75
107
|
76
108
LL | Foo:Bar => {}
77
- | ^
109
+ | ^--- specifying the type of a pattern isn't supported
78
110
| |
79
111
| 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
84
112
|
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
+ | ~~
87
117
88
- error: aborting due to 10 previous errors
118
+ error: aborting due to 9 previous errors
89
119
90
- For more information about this error, try `rustc --explain E0433`.
0 commit comments