|
1 | 1 | error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
|
2 | 2 | --> $DIR/empty-struct-unit-pat.rs:21:9
|
3 | 3 | |
|
| 4 | +LL | struct Empty2; |
| 5 | + | -------------- `Empty2` defined here |
| 6 | +... |
4 | 7 | LL | Empty2() => ()
|
5 |
| - | ^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6` |
| 8 | + | ^^^^^^^^ |
6 | 9 | |
|
7 | 10 | ::: $DIR/auxiliary/empty-struct.rs:3:1
|
8 | 11 | |
|
9 | 12 | LL | pub struct XEmpty6();
|
10 | 13 | | --------------------- similarly named tuple struct `XEmpty6` defined here
|
| 14 | + | |
| 15 | +help: use this syntax instead |
| 16 | + | |
| 17 | +LL | Empty2 => () |
| 18 | + | ^^^^^^ |
| 19 | +help: a tuple struct with a similar name exists |
| 20 | + | |
| 21 | +LL | XEmpty6() => () |
| 22 | + | ^^^^^^^ |
11 | 23 |
|
12 | 24 | error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
|
13 | 25 | --> $DIR/empty-struct-unit-pat.rs:24:9
|
14 | 26 | |
|
15 | 27 | LL | XEmpty2() => ()
|
16 |
| - | ^^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6` |
| 28 | + | ^^^^^^^^^ |
17 | 29 | |
|
18 |
| - ::: $DIR/auxiliary/empty-struct.rs:3:1 |
| 30 | + ::: $DIR/auxiliary/empty-struct.rs:2:1 |
19 | 31 | |
|
| 32 | +LL | pub struct XEmpty2; |
| 33 | + | ------------------- `XEmpty2` defined here |
20 | 34 | LL | pub struct XEmpty6();
|
21 | 35 | | --------------------- similarly named tuple struct `XEmpty6` defined here
|
| 36 | + | |
| 37 | +help: use this syntax instead |
| 38 | + | |
| 39 | +LL | XEmpty2 => () |
| 40 | + | ^^^^^^^ |
| 41 | +help: a tuple struct with a similar name exists |
| 42 | + | |
| 43 | +LL | XEmpty6() => () |
| 44 | + | ^^^^^^^ |
22 | 45 |
|
23 | 46 | error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
|
24 | 47 | --> $DIR/empty-struct-unit-pat.rs:28:9
|
25 | 48 | |
|
| 49 | +LL | struct Empty2; |
| 50 | + | -------------- `Empty2` defined here |
| 51 | +... |
26 | 52 | LL | Empty2(..) => ()
|
27 |
| - | ^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6` |
| 53 | + | ^^^^^^^^^^ |
28 | 54 | |
|
29 | 55 | ::: $DIR/auxiliary/empty-struct.rs:3:1
|
30 | 56 | |
|
31 | 57 | LL | pub struct XEmpty6();
|
32 | 58 | | --------------------- similarly named tuple struct `XEmpty6` defined here
|
| 59 | + | |
| 60 | +help: use this syntax instead |
| 61 | + | |
| 62 | +LL | Empty2 => () |
| 63 | + | ^^^^^^ |
| 64 | +help: a tuple struct with a similar name exists |
| 65 | + | |
| 66 | +LL | XEmpty6(..) => () |
| 67 | + | ^^^^^^^ |
33 | 68 |
|
34 | 69 | error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
|
35 | 70 | --> $DIR/empty-struct-unit-pat.rs:32:9
|
36 | 71 | |
|
37 | 72 | LL | XEmpty2(..) => ()
|
38 |
| - | ^^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6` |
| 73 | + | ^^^^^^^^^^^ |
39 | 74 | |
|
40 |
| - ::: $DIR/auxiliary/empty-struct.rs:3:1 |
| 75 | + ::: $DIR/auxiliary/empty-struct.rs:2:1 |
41 | 76 | |
|
| 77 | +LL | pub struct XEmpty2; |
| 78 | + | ------------------- `XEmpty2` defined here |
42 | 79 | LL | pub struct XEmpty6();
|
43 | 80 | | --------------------- similarly named tuple struct `XEmpty6` defined here
|
| 81 | + | |
| 82 | +help: use this syntax instead |
| 83 | + | |
| 84 | +LL | XEmpty2 => () |
| 85 | + | ^^^^^^^ |
| 86 | +help: a tuple struct with a similar name exists |
| 87 | + | |
| 88 | +LL | XEmpty6(..) => () |
| 89 | + | ^^^^^^^ |
44 | 90 |
|
45 | 91 | error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
|
46 | 92 | --> $DIR/empty-struct-unit-pat.rs:37:9
|
47 | 93 | |
|
| 94 | +LL | Empty4 |
| 95 | + | ------ `E::Empty4` defined here |
| 96 | +... |
48 | 97 | LL | E::Empty4() => ()
|
49 |
| - | ^^^^^^^^^ not a tuple struct or tuple variant |
| 98 | + | ^^^^^^^^^^^ help: use this syntax instead: `E::Empty4` |
50 | 99 |
|
51 | 100 | error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
|
52 | 101 | --> $DIR/empty-struct-unit-pat.rs:41:9
|
53 | 102 | |
|
54 | 103 | LL | XE::XEmpty4() => (),
|
55 |
| - | ^^^^------- |
56 |
| - | | |
57 |
| - | help: a tuple variant with a similar name exists: `XEmpty5` |
| 104 | + | ^^^^^^^^^^^^^ |
58 | 105 | |
|
59 |
| - ::: $DIR/auxiliary/empty-struct.rs:8:5 |
| 106 | + ::: $DIR/auxiliary/empty-struct.rs:7:5 |
60 | 107 | |
|
| 108 | +LL | XEmpty4, |
| 109 | + | ------- `XE::XEmpty4` defined here |
61 | 110 | LL | XEmpty5(),
|
62 | 111 | | --------- similarly named tuple variant `XEmpty5` defined here
|
| 112 | + | |
| 113 | +help: use this syntax instead |
| 114 | + | |
| 115 | +LL | XE::XEmpty4 => (), |
| 116 | + | ^^^^^^^^^^^ |
| 117 | +help: a tuple variant with a similar name exists |
| 118 | + | |
| 119 | +LL | XE::XEmpty5() => (), |
| 120 | + | ^^^^^^^ |
63 | 121 |
|
64 | 122 | error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
|
65 | 123 | --> $DIR/empty-struct-unit-pat.rs:46:9
|
66 | 124 | |
|
| 125 | +LL | Empty4 |
| 126 | + | ------ `E::Empty4` defined here |
| 127 | +... |
67 | 128 | LL | E::Empty4(..) => ()
|
68 |
| - | ^^^^^^^^^ not a tuple struct or tuple variant |
| 129 | + | ^^^^^^^^^^^^^ help: use this syntax instead: `E::Empty4` |
69 | 130 |
|
70 | 131 | error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
|
71 | 132 | --> $DIR/empty-struct-unit-pat.rs:50:9
|
72 | 133 | |
|
73 | 134 | LL | XE::XEmpty4(..) => (),
|
74 |
| - | ^^^^------- |
75 |
| - | | |
76 |
| - | help: a tuple variant with a similar name exists: `XEmpty5` |
| 135 | + | ^^^^^^^^^^^^^^^ |
77 | 136 | |
|
78 |
| - ::: $DIR/auxiliary/empty-struct.rs:8:5 |
| 137 | + ::: $DIR/auxiliary/empty-struct.rs:7:5 |
79 | 138 | |
|
| 139 | +LL | XEmpty4, |
| 140 | + | ------- `XE::XEmpty4` defined here |
80 | 141 | LL | XEmpty5(),
|
81 | 142 | | --------- similarly named tuple variant `XEmpty5` defined here
|
| 143 | + | |
| 144 | +help: use this syntax instead |
| 145 | + | |
| 146 | +LL | XE::XEmpty4 => (), |
| 147 | + | ^^^^^^^^^^^ |
| 148 | +help: a tuple variant with a similar name exists |
| 149 | + | |
| 150 | +LL | XE::XEmpty5(..) => (), |
| 151 | + | ^^^^^^^ |
82 | 152 |
|
83 | 153 | error: aborting due to 8 previous errors
|
84 | 154 |
|
|
0 commit comments