1 error: invalid `struct` delimiters or `fn` call arguments
2 --> $DIR/recover-from-bad-variant.rs:7:13
4 LL | let x = Enum::Foo(a: 3, b: 4);
5 | ^^^^^^^^^^^^^^^^^^^^^
7 help: if `Enum::Foo` is a struct, use braces as delimiters
9 LL | let x = Enum::Foo { a: 3, b: 4 };
11 help: if `Enum::Foo` is a function, use the arguments directly
13 LL - let x = Enum::Foo(a: 3, b: 4);
14 LL + let x = Enum::Foo(3, 4);
17 error[E0164]: expected tuple struct or tuple variant, found struct variant `Enum::Foo`
18 --> $DIR/recover-from-bad-variant.rs:10:9
20 LL | Enum::Foo(a, b) => {}
21 | ^^^^^^^^^^^^^^^ not a tuple struct or tuple variant
23 error[E0769]: tuple variant `Enum::Bar` written as struct variant
24 --> $DIR/recover-from-bad-variant.rs:12:9
26 LL | Enum::Bar { a, b } => {}
29 help: use the tuple variant pattern syntax instead
31 LL | Enum::Bar(a, b) => {}
34 error: aborting due to 3 previous errors
36 Some errors have detailed explanations: E0164, E0769.
37 For more information about an error, try `rustc --explain E0164`.