]> git.lizzy.rs Git - rust.git/blob - src/test/ui/empty/empty-struct-unit-pat.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / empty / empty-struct-unit-pat.stderr
1 error[E0532]: expected tuple struct/variant, found unit struct `Empty2`
2   --> $DIR/empty-struct-unit-pat.rs:31:9
3    |
4 LL |         Empty2() => () //~ ERROR expected tuple struct/variant, found unit struct `Empty2`
5    |         ^^^^^^ did you mean `XEmpty6`?
6
7 error[E0532]: expected tuple struct/variant, found unit struct `XEmpty2`
8   --> $DIR/empty-struct-unit-pat.rs:34:9
9    |
10 LL |         XEmpty2() => () //~ ERROR expected tuple struct/variant, found unit struct `XEmpty2`
11    |         ^^^^^^^ did you mean `XEmpty6`?
12
13 error[E0532]: expected tuple struct/variant, found unit struct `Empty2`
14   --> $DIR/empty-struct-unit-pat.rs:37:9
15    |
16 LL |         Empty2(..) => () //~ ERROR expected tuple struct/variant, found unit struct `Empty2`
17    |         ^^^^^^ did you mean `XEmpty6`?
18
19 error[E0532]: expected tuple struct/variant, found unit struct `XEmpty2`
20   --> $DIR/empty-struct-unit-pat.rs:40:9
21    |
22 LL |         XEmpty2(..) => () //~ ERROR expected tuple struct/variant, found unit struct `XEmpty2`
23    |         ^^^^^^^ did you mean `XEmpty6`?
24
25 error[E0532]: expected tuple struct/variant, found unit variant `E::Empty4`
26   --> $DIR/empty-struct-unit-pat.rs:44:9
27    |
28 LL |         E::Empty4() => () //~ ERROR expected tuple struct/variant, found unit variant `E::Empty4`
29    |         ^^^^^^^^^ not a tuple struct/variant
30
31 error[E0532]: expected tuple struct/variant, found unit variant `XE::XEmpty4`
32   --> $DIR/empty-struct-unit-pat.rs:47:9
33    |
34 LL |         XE::XEmpty4() => (),
35    |         ^^^^-------
36    |             |
37    |             did you mean `XEmpty5`?
38
39 error[E0532]: expected tuple struct/variant, found unit variant `E::Empty4`
40   --> $DIR/empty-struct-unit-pat.rs:52:9
41    |
42 LL |         E::Empty4(..) => () //~ ERROR expected tuple struct/variant, found unit variant `E::Empty4`
43    |         ^^^^^^^^^ not a tuple struct/variant
44
45 error[E0532]: expected tuple struct/variant, found unit variant `XE::XEmpty4`
46   --> $DIR/empty-struct-unit-pat.rs:55:9
47    |
48 LL |         XE::XEmpty4(..) => (),
49    |         ^^^^-------
50    |             |
51    |             did you mean `XEmpty5`?
52
53 error: aborting due to 8 previous errors
54
55 For more information about this error, try `rustc --explain E0532`.