]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-87086-colon-path-sep.stderr
Rollup merge of #107150 - Nilstrieb:thread-local-cleanups, r=cjgillot
[rust.git] / tests / ui / parser / issues / issue-87086-colon-path-sep.stderr
1 error: expected one of `@` or `|`, found `:`
2   --> $DIR/issue-87086-colon-path-sep.rs:17:12
3    |
4 LL |         Foo:Bar => {}
5    |            ^--- specifying the type of a pattern isn't supported
6    |            |
7    |            expected one of `@` or `|`
8    |
9 help: maybe write a path separator here
10    |
11 LL |         Foo::Bar => {}
12    |            ~~
13
14 error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `{`, or `|`, found `:`
15   --> $DIR/issue-87086-colon-path-sep.rs:23:17
16    |
17 LL |         qux::Foo:Bar => {}
18    |                 ^--- specifying the type of a pattern isn't supported
19    |                 |
20    |                 expected one of 8 possible tokens
21    |
22 help: maybe write a path separator here
23    |
24 LL |         qux::Foo::Bar => {}
25    |                 ~~
26
27 error: expected one of `@` or `|`, found `:`
28   --> $DIR/issue-87086-colon-path-sep.rs:29:12
29    |
30 LL |         qux:Foo::Baz => {}
31    |            ^-------- specifying the type of a pattern isn't supported
32    |            |
33    |            expected one of `@` or `|`
34    |
35 help: maybe write a path separator here
36    |
37 LL |         qux::Foo::Baz => {}
38    |            ~~
39
40 error: expected one of `@` or `|`, found `:`
41   --> $DIR/issue-87086-colon-path-sep.rs:35:12
42    |
43 LL |         qux: Foo::Baz if true => {}
44    |            ^ -------- specifying the type of a pattern isn't supported
45    |            |
46    |            expected one of `@` or `|`
47    |
48 help: maybe write a path separator here
49    |
50 LL |         qux::Foo::Baz if true => {}
51    |            ~~
52
53 error: expected one of `@` or `|`, found `:`
54   --> $DIR/issue-87086-colon-path-sep.rs:40:15
55    |
56 LL |     if let Foo:Bar = f() {
57    |               ^--- specifying the type of a pattern isn't supported
58    |               |
59    |               expected one of `@` or `|`
60    |
61 help: maybe write a path separator here
62    |
63 LL |     if let Foo::Bar = f() {
64    |               ~~
65
66 error: expected one of `@` or `|`, found `:`
67   --> $DIR/issue-87086-colon-path-sep.rs:48:16
68    |
69 LL |         ref qux: Foo::Baz => {}
70    |                ^ -------- specifying the type of a pattern isn't supported
71    |                |
72    |                expected one of `@` or `|`
73    |
74 help: maybe write a path separator here
75    |
76 LL |         ref qux::Foo::Baz => {}
77    |                ~~
78
79 error: expected one of `@` or `|`, found `:`
80   --> $DIR/issue-87086-colon-path-sep.rs:57:16
81    |
82 LL |         mut qux: Foo::Baz => {}
83    |                ^ -------- specifying the type of a pattern isn't supported
84    |                |
85    |                expected one of `@` or `|`
86    |
87 help: maybe write a path separator here
88    |
89 LL |         mut qux::Foo::Baz => {}
90    |                ~~
91
92 error: expected one of `@` or `|`, found `:`
93   --> $DIR/issue-87086-colon-path-sep.rs:68:12
94    |
95 LL |         Foo:Bar::Baz => {}
96    |            ^-------- specifying the type of a pattern isn't supported
97    |            |
98    |            expected one of `@` or `|`
99    |
100 help: maybe write a path separator here
101    |
102 LL |         Foo::Bar::Baz => {}
103    |            ~~
104
105 error: expected one of `@` or `|`, found `:`
106   --> $DIR/issue-87086-colon-path-sep.rs:74:12
107    |
108 LL |         Foo:Bar => {}
109    |            ^--- specifying the type of a pattern isn't supported
110    |            |
111    |            expected one of `@` or `|`
112    |
113 help: maybe write a path separator here
114    |
115 LL |         Foo::Bar => {}
116    |            ~~
117
118 error: aborting due to 9 previous errors
119