@@ -36,23 +36,23 @@ LL | x::i32 => x,
36
36
| ~~
37
37
38
38
error: expected one of `...`, `..=`, `..`, or `|`, found `:`
39
- --> $DIR/anon-enums.rs:14 :11
39
+ --> $DIR/anon-enums.rs:13 :11
40
40
|
41
41
LL | 42: i32 => (),
42
42
| ^ --- specifying the type of a pattern isn't supported
43
43
| |
44
44
| expected one of `...`, `..=`, `..`, or `|`
45
45
46
46
error: expected `|`, found `:`
47
- --> $DIR/anon-enums.rs:15 :10
47
+ --> $DIR/anon-enums.rs:14 :10
48
48
|
49
49
LL | _: f64 => (),
50
50
| ^ --- specifying the type of a pattern isn't supported
51
51
| |
52
52
| expected `|`
53
53
54
54
error: expected one of `@` or `|`, found `:`
55
- --> $DIR/anon-enums.rs:16 :10
55
+ --> $DIR/anon-enums.rs:15 :10
56
56
|
57
57
LL | x: i32 => (),
58
58
| ^ --- specifying the type of a pattern isn't supported
@@ -64,18 +64,5 @@ help: maybe write a path separator here
64
64
LL | x::i32 => (),
65
65
| ~~
66
66
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
80
68
81
- For more information about this error, try `rustc --explain E0433`.
0 commit comments