|
1 |
| -error[E0533]: expected unit struct, unit variant or constant, found struct variant `<Alias>::Braced` |
| 1 | +error[E0533]: expected unit struct, unit variant or constant, found struct variant `Alias::Braced` |
2 | 2 | --> $DIR/incorrect-variant-form-through-alias-caught.rs:10:5
|
3 | 3 | |
|
4 | 4 | LL | Alias::Braced;
|
5 | 5 | | ^^^^^^^^^^^^^
|
6 | 6 |
|
7 |
| -error[E0533]: expected unit struct, unit variant or constant, found struct variant `<Alias>::Braced` |
| 7 | +error[E0533]: expected unit struct, unit variant or constant, found struct variant `Alias::Braced` |
8 | 8 | --> $DIR/incorrect-variant-form-through-alias-caught.rs:12:9
|
9 | 9 | |
|
10 | 10 | LL | let Alias::Braced = panic!();
|
11 | 11 | | ^^^^^^^^^^^^^
|
12 | 12 |
|
13 |
| -error[E0164]: expected tuple struct or tuple variant, found struct variant `<Alias>::Braced` |
| 13 | +error[E0164]: expected tuple struct or tuple variant, found struct variant `Alias::Braced` |
14 | 14 | --> $DIR/incorrect-variant-form-through-alias-caught.rs:14:9
|
15 | 15 | |
|
16 | 16 | LL | let Alias::Braced(..) = panic!();
|
17 | 17 | | ^^^^^^^^^^^^^^^^^ not a tuple variant or struct
|
18 | 18 |
|
19 |
| -error[E0618]: expected function, found enum variant `<Alias>::Unit` |
| 19 | +error[E0618]: expected function, found enum variant `Alias::Unit` |
20 | 20 | --> $DIR/incorrect-variant-form-through-alias-caught.rs:17:5
|
21 | 21 | |
|
22 | 22 | LL | enum Enum { Braced {}, Unit, Tuple() }
|
23 |
| - | ---- `<Alias>::Unit` defined here |
| 23 | + | ---- `Alias::Unit` defined here |
24 | 24 | ...
|
25 | 25 | LL | Alias::Unit();
|
26 | 26 | | ^^^^^^^^^^^--
|
27 | 27 | | |
|
28 | 28 | | call expression requires function
|
29 | 29 | |
|
30 |
| -help: `<Alias>::Unit` is a unit variant, you need to write it without the parenthesis |
| 30 | +help: `Alias::Unit` is a unit variant, you need to write it without the parenthesis |
31 | 31 | |
|
32 |
| -LL | <Alias>::Unit; |
33 |
| - | ^^^^^^^^^^^^^ |
| 32 | +LL | Alias::Unit; |
| 33 | + | ^^^^^^^^^^^ |
34 | 34 |
|
35 |
| -error[E0164]: expected tuple struct or tuple variant, found unit variant `<Alias>::Unit` |
| 35 | +error[E0164]: expected tuple struct or tuple variant, found unit variant `Alias::Unit` |
36 | 36 | --> $DIR/incorrect-variant-form-through-alias-caught.rs:19:9
|
37 | 37 | |
|
38 | 38 | LL | let Alias::Unit() = panic!();
|
|
0 commit comments