]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-enum-variants-panic.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / type-alias-enum-variants-panic.stderr
1 error[E0533]: expected unit struct/variant or constant, found struct variant `<Alias>::Variant`
2   --> $DIR/type-alias-enum-variants-panic.rs:11:5
3    |
4 LL |     Alias::Variant;
5    |     ^^^^^^^^^^^^^^
6
7 error[E0533]: expected unit struct/variant or constant, found struct variant `<Alias>::Variant`
8   --> $DIR/type-alias-enum-variants-panic.rs:13:9
9    |
10 LL |     let Alias::Variant = panic!();
11    |         ^^^^^^^^^^^^^^
12
13 error[E0164]: expected tuple struct/variant, found struct variant `<Alias>::Variant`
14   --> $DIR/type-alias-enum-variants-panic.rs:15:9
15    |
16 LL |     let Alias::Variant(..) = panic!();
17    |         ^^^^^^^^^^^^^^^^^^ not a tuple variant or struct
18
19 error: aborting due to 3 previous errors
20
21 Some errors occurred: E0164, E0533.
22 For more information about an error, try `rustc --explain E0164`.