//~| ERROR anonymous enums are not supported
match x {
x: i32 => x, //~ ERROR expected
- //~^ ERROR failed to resolve
true => 42.,
false => 0.333,
}
42: i32 => (), //~ ERROR expected
_: f64 => (), //~ ERROR expected
x: i32 => (), //~ ERROR expected
- //~^ ERROR failed to resolve
}
}
| ~~
error: expected one of `...`, `..=`, `..`, or `|`, found `:`
- --> $DIR/anon-enums.rs:14:11
+ --> $DIR/anon-enums.rs:13:11
|
LL | 42: i32 => (),
| ^ --- specifying the type of a pattern isn't supported
| expected one of `...`, `..=`, `..`, or `|`
error: expected `|`, found `:`
- --> $DIR/anon-enums.rs:15:10
+ --> $DIR/anon-enums.rs:14:10
|
LL | _: f64 => (),
| ^ --- specifying the type of a pattern isn't supported
| expected `|`
error: expected one of `@` or `|`, found `:`
- --> $DIR/anon-enums.rs:16:10
+ --> $DIR/anon-enums.rs:15:10
|
LL | x: i32 => (),
| ^ --- specifying the type of a pattern isn't supported
LL | x::i32 => (),
| ~~
-error[E0433]: failed to resolve: use of undeclared crate or module `x`
- --> $DIR/anon-enums.rs:5:9
- |
-LL | x: i32 => x,
- | ^ use of undeclared crate or module `x`
-
-error[E0433]: failed to resolve: use of undeclared crate or module `x`
- --> $DIR/anon-enums.rs:16:9
- |
-LL | x: i32 => (),
- | ^ use of undeclared crate or module `x`
-
-error: aborting due to 8 previous errors
+error: aborting due to 6 previous errors
-For more information about this error, try `rustc --explain E0433`.
| ~~
error: expected one of `@` or `|`, found `:`
- --> $DIR/issue-87086-colon-path-sep.rs:75:12
+ --> $DIR/issue-87086-colon-path-sep.rs:74:12
|
LL | Foo:Bar => {}
| ^--- specifying the type of a pattern isn't supported
LL | Foo::Bar => {}
| ~~
-error[E0433]: failed to resolve: `Bar` is a variant, not a module
- --> $DIR/issue-87086-colon-path-sep.rs:68:13
- |
-LL | Foo:Bar::Baz => {}
- | ^^^ `Bar` is a variant, not a module
-
-error: aborting due to 10 previous errors
+error: aborting due to 9 previous errors
-For more information about this error, try `rustc --explain E0433`.