1 error[E0533]: expected unit struct/variant or constant, found struct variant `<Alias>::Braced`
2 --> $DIR/incorrect-variant-form-through-alias-caught.rs:10:5
7 error[E0533]: expected unit struct/variant or constant, found struct variant `<Alias>::Braced`
8 --> $DIR/incorrect-variant-form-through-alias-caught.rs:12:9
10 LL | let Alias::Braced = panic!();
13 error[E0164]: expected tuple struct/variant, found struct variant `<Alias>::Braced`
14 --> $DIR/incorrect-variant-form-through-alias-caught.rs:14:9
16 LL | let Alias::Braced(..) = panic!();
17 | ^^^^^^^^^^^^^^^^^ not a tuple variant or struct
19 error[E0618]: expected function, found enum variant `<Alias>::Unit`
20 --> $DIR/incorrect-variant-form-through-alias-caught.rs:17:5
22 LL | enum Enum { Braced {}, Unit, Tuple() }
23 | ---- `<Alias>::Unit` defined here
28 | call expression requires function
29 help: `<Alias>::Unit` is a unit variant, you need to write it without the parenthesis
34 error[E0164]: expected tuple struct/variant, found unit variant `<Alias>::Unit`
35 --> $DIR/incorrect-variant-form-through-alias-caught.rs:19:9
37 LL | let Alias::Unit() = panic!();
38 | ^^^^^^^^^^^^^ not a tuple variant or struct
40 error: aborting due to 5 previous errors
42 Some errors have detailed explanations: E0164, E0533, E0618.
43 For more information about an error, try `rustc --explain E0164`.