11error[E0533]: expected unit struct/variant or constant, found struct variant `<Alias>::Braced`
2- --> $DIR/incorrect-variant-form-through-alias-caught.rs:12 :5
2+ --> $DIR/incorrect-variant-form-through-alias-caught.rs:10 :5
33 |
44LL | Alias::Braced;
55 | ^^^^^^^^^^^^^
66
77error[E0533]: expected unit struct/variant or constant, found struct variant `<Alias>::Braced`
8- --> $DIR/incorrect-variant-form-through-alias-caught.rs:14 :9
8+ --> $DIR/incorrect-variant-form-through-alias-caught.rs:12 :9
99 |
1010LL | let Alias::Braced = panic!();
1111 | ^^^^^^^^^^^^^
1212
1313error[E0164]: expected tuple struct/variant, found struct variant `<Alias>::Braced`
14- --> $DIR/incorrect-variant-form-through-alias-caught.rs:16 :9
14+ --> $DIR/incorrect-variant-form-through-alias-caught.rs:14 :9
1515 |
1616LL | let Alias::Braced(..) = panic!();
1717 | ^^^^^^^^^^^^^^^^^ not a tuple variant or struct
1818
1919error[E0618]: expected function, found enum variant `<Alias>::Unit`
20- --> $DIR/incorrect-variant-form-through-alias-caught.rs:19 :5
20+ --> $DIR/incorrect-variant-form-through-alias-caught.rs:17 :5
2121 |
2222LL | enum Enum { Braced {}, Unit, Tuple() }
2323 | ---- `<Alias>::Unit` defined here
@@ -32,7 +32,7 @@ LL | <Alias>::Unit;
3232 | ^^^^^^^^^^^^^
3333
3434error[E0164]: expected tuple struct/variant, found unit variant `<Alias>::Unit`
35- --> $DIR/incorrect-variant-form-through-alias-caught.rs:21 :9
35+ --> $DIR/incorrect-variant-form-through-alias-caught.rs:19 :9
3636 |
3737LL | let Alias::Unit() = panic!();
3838 | ^^^^^^^^^^^^^ not a tuple variant or struct
0 commit comments