1
1
error[E0533]: expected unit struct/variant or constant, found struct variant `<Alias>::Braced`
2
- --> $DIR/type-alias-enum-variants-panic .rs:12:5
2
+ --> $DIR/incorrect-variant-form-through-alias-caught .rs:12:5
3
3
|
4
4
LL | Alias::Braced;
5
5
| ^^^^^^^^^^^^^
6
6
7
7
error[E0533]: expected unit struct/variant or constant, found struct variant `<Alias>::Braced`
8
- --> $DIR/type-alias-enum-variants-panic .rs:14:9
8
+ --> $DIR/incorrect-variant-form-through-alias-caught .rs:14:9
9
9
|
10
10
LL | let Alias::Braced = panic!();
11
11
| ^^^^^^^^^^^^^
12
12
13
13
error[E0164]: expected tuple struct/variant, found struct variant `<Alias>::Braced`
14
- --> $DIR/type-alias-enum-variants-panic .rs:16:9
14
+ --> $DIR/incorrect-variant-form-through-alias-caught .rs:16:9
15
15
|
16
16
LL | let Alias::Braced(..) = panic!();
17
17
| ^^^^^^^^^^^^^^^^^ not a tuple variant or struct
18
18
19
19
error[E0618]: expected function, found enum variant `<Alias>::Unit`
20
- --> $DIR/type-alias-enum-variants-panic .rs:19:5
20
+ --> $DIR/incorrect-variant-form-through-alias-caught .rs:19:5
21
21
|
22
22
LL | enum Enum { Braced {}, Unit, Tuple() }
23
23
| ---- `<Alias>::Unit` defined here
@@ -32,7 +32,7 @@ LL | <Alias>::Unit;
32
32
| ^^^^^^^^^^^^^
33
33
34
34
error[E0164]: expected tuple struct/variant, found unit variant `<Alias>::Unit`
35
- --> $DIR/type-alias-enum-variants-panic .rs:21:9
35
+ --> $DIR/incorrect-variant-form-through-alias-caught .rs:21:9
36
36
|
37
37
LL | let Alias::Unit() = panic!();
38
38
| ^^^^^^^^^^^^^ not a tuple variant or struct
0 commit comments