1 error: expected type, found `3`
2 --> $DIR/recover-from-bad-variant.rs:7:26
4 LL | let x = Enum::Foo(a: 3, b: 4);
7 | tried to parse a type due to this type ascription
9 = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
10 = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
12 error[E0532]: expected tuple struct or tuple variant, found struct variant `Enum::Foo`
13 --> $DIR/recover-from-bad-variant.rs:10:9
15 LL | Foo { a: usize, b: usize },
16 | -------------------------- `Enum::Foo` defined here
18 LL | Enum::Foo(a, b) => {}
19 | ^^^^^^^^^^^^^^^ help: use struct pattern syntax instead: `Enum::Foo { a, b }`
21 error[E0769]: tuple variant `Enum::Bar` written as struct variant
22 --> $DIR/recover-from-bad-variant.rs:12:9
24 LL | Enum::Bar { a, b } => {}
27 help: use the tuple variant pattern syntax instead
29 LL | Enum::Bar(a, b) => {}
32 error: aborting due to 3 previous errors
34 Some errors have detailed explanations: E0532, E0769.
35 For more information about an error, try `rustc --explain E0532`.