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);
5 | ^ expecting a type here because of type ascription
7 = note: #![feature(type_ascription)] lets you annotate an expression with a type: `<expr>: <type>`
8 note: this expression expects an ascribed type after the colon
9 --> $DIR/recover-from-bad-variant.rs:7:23
11 LL | let x = Enum::Foo(a: 3, b: 4);
13 = help: this might be indicative of a syntax error elsewhere
15 error[E0532]: expected tuple struct/variant, found struct variant `Enum::Foo`
16 --> $DIR/recover-from-bad-variant.rs:10:9
18 LL | Enum::Foo(a, b) => {}
19 | ^^^^^^^^^ did you mean `Enum::Foo { /* fields */ }`?
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0532`.