type-alias-enum-variants-panic: rename to something descriptive.
This commit is contained in:
parent
bed189791e
commit
d358b5f1d8
@ -1,23 +1,23 @@
|
||||
error[E0533]: expected unit struct/variant or constant, found struct variant `<Alias>::Braced`
|
||||
--> $DIR/type-alias-enum-variants-panic.rs:12:5
|
||||
--> $DIR/incorrect-variant-form-through-alias-caught.rs:12:5
|
||||
|
|
||||
LL | Alias::Braced;
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error[E0533]: expected unit struct/variant or constant, found struct variant `<Alias>::Braced`
|
||||
--> $DIR/type-alias-enum-variants-panic.rs:14:9
|
||||
--> $DIR/incorrect-variant-form-through-alias-caught.rs:14:9
|
||||
|
|
||||
LL | let Alias::Braced = panic!();
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error[E0164]: expected tuple struct/variant, found struct variant `<Alias>::Braced`
|
||||
--> $DIR/type-alias-enum-variants-panic.rs:16:9
|
||||
--> $DIR/incorrect-variant-form-through-alias-caught.rs:16:9
|
||||
|
|
||||
LL | let Alias::Braced(..) = panic!();
|
||||
| ^^^^^^^^^^^^^^^^^ not a tuple variant or struct
|
||||
|
||||
error[E0618]: expected function, found enum variant `<Alias>::Unit`
|
||||
--> $DIR/type-alias-enum-variants-panic.rs:19:5
|
||||
--> $DIR/incorrect-variant-form-through-alias-caught.rs:19:5
|
||||
|
|
||||
LL | enum Enum { Braced {}, Unit, Tuple() }
|
||||
| ---- `<Alias>::Unit` defined here
|
||||
@ -32,7 +32,7 @@ LL | <Alias>::Unit;
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error[E0164]: expected tuple struct/variant, found unit variant `<Alias>::Unit`
|
||||
--> $DIR/type-alias-enum-variants-panic.rs:21:9
|
||||
--> $DIR/incorrect-variant-form-through-alias-caught.rs:21:9
|
||||
|
|
||||
LL | let Alias::Unit() = panic!();
|
||||
| ^^^^^^^^^^^^^ not a tuple variant or struct
|
Loading…
x
Reference in New Issue
Block a user