Skip to content

Commit d358b5f

Browse files
committed
type-alias-enum-variants-panic: rename to something descriptive.
1 parent bed1897 commit d358b5f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/test/ui/type-alias-enum-variants/type-alias-enum-variants-panic.stderr renamed to src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
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
33
|
44
LL | Alias::Braced;
55
| ^^^^^^^^^^^^^
66

77
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
99
|
1010
LL | let Alias::Braced = panic!();
1111
| ^^^^^^^^^^^^^
1212

1313
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
1515
|
1616
LL | let Alias::Braced(..) = panic!();
1717
| ^^^^^^^^^^^^^^^^^ not a tuple variant or struct
1818

1919
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
2121
|
2222
LL | enum Enum { Braced {}, Unit, Tuple() }
2323
| ---- `<Alias>::Unit` defined here
@@ -32,7 +32,7 @@ LL | <Alias>::Unit;
3232
| ^^^^^^^^^^^^^
3333

3434
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
3636
|
3737
LL | let Alias::Unit() = panic!();
3838
| ^^^^^^^^^^^^^ not a tuple variant or struct

0 commit comments

Comments
 (0)