fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: expected type, found `3` 2 --> $DIR/recover-from-bad-variant.rs:7:26 3 | 4LL | let x = Enum::Foo(a: 3, b: 4); 5 | - ^ expected type 6 | | 7 | tried to parse a type due to this type ascription 8 | 9 = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>` 10 = note: for more information, see https://github.com/rust-lang/rust/issues/23416 11 12error[E0532]: expected tuple struct/variant, found struct variant `Enum::Foo` 13 --> $DIR/recover-from-bad-variant.rs:10:9 14 | 15LL | Enum::Foo(a, b) => {} 16 | ^^^^^^^^^ did you mean `Enum::Foo { /* fields */ }`? 17 18error: aborting due to 2 previous errors 19 20For more information about this error, try `rustc --explain E0532`.