@@ -36,23 +36,23 @@ LL |         x::i32 => x,
3636   |          ~~
3737
3838error: expected one of `...`, `..=`, `..`, or `|`, found `:`
39-   --> $DIR/anon-enums.rs:14 :11
39+   --> $DIR/anon-enums.rs:13 :11
4040   |
4141LL |         42: i32 => (),
4242   |           ^ --- specifying the type of a pattern isn't supported
4343   |           |
4444   |           expected one of `...`, `..=`, `..`, or `|`
4545
4646error: expected `|`, found `:`
47-   --> $DIR/anon-enums.rs:15 :10
47+   --> $DIR/anon-enums.rs:14 :10
4848   |
4949LL |         _: f64 => (),
5050   |          ^ --- specifying the type of a pattern isn't supported
5151   |          |
5252   |          expected `|`
5353
5454error: expected one of `@` or `|`, found `:`
55-   --> $DIR/anon-enums.rs:16 :10
55+   --> $DIR/anon-enums.rs:15 :10
5656   |
5757LL |         x: i32 => (),
5858   |          ^ --- specifying the type of a pattern isn't supported
@@ -64,18 +64,5 @@ help: maybe write a path separator here
6464LL |         x::i32 => (),
6565   |          ~~
6666
67- error[E0433]: failed to resolve: use of undeclared crate or module `x`
68-   --> $DIR/anon-enums.rs:5:9
69-    |
70- LL |         x: i32 => x,
71-    |         ^ use of undeclared crate or module `x`
72- 
73- error[E0433]: failed to resolve: use of undeclared crate or module `x`
74-   --> $DIR/anon-enums.rs:16:9
75-    |
76- LL |         x: i32 => (),
77-    |         ^ use of undeclared crate or module `x`
78- 
79- error: aborting due to 8 previous errors
67+ error: aborting due to 6 previous errors
8068
81- For more information about this error, try `rustc --explain E0433`.
0 commit comments