fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
2.9 KiB85 linesraw
1error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
2  --> $DIR/empty-struct-unit-pat.rs:21:9
3   |
4LL |         Empty2() => ()
5   |         ^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6`
6   | 
7  ::: $DIR/auxiliary/empty-struct.rs:3:1
8   |
9LL | pub struct XEmpty6();
10   | --------------------- similarly named tuple struct `XEmpty6` defined here
11
12error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
13  --> $DIR/empty-struct-unit-pat.rs:24:9
14   |
15LL |         XEmpty2() => ()
16   |         ^^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6`
17   | 
18  ::: $DIR/auxiliary/empty-struct.rs:3:1
19   |
20LL | pub struct XEmpty6();
21   | --------------------- similarly named tuple struct `XEmpty6` defined here
22
23error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
24  --> $DIR/empty-struct-unit-pat.rs:28:9
25   |
26LL |         Empty2(..) => ()
27   |         ^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6`
28   | 
29  ::: $DIR/auxiliary/empty-struct.rs:3:1
30   |
31LL | pub struct XEmpty6();
32   | --------------------- similarly named tuple struct `XEmpty6` defined here
33
34error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
35  --> $DIR/empty-struct-unit-pat.rs:32:9
36   |
37LL |         XEmpty2(..) => ()
38   |         ^^^^^^^ help: a tuple struct with a similar name exists: `XEmpty6`
39   | 
40  ::: $DIR/auxiliary/empty-struct.rs:3:1
41   |
42LL | pub struct XEmpty6();
43   | --------------------- similarly named tuple struct `XEmpty6` defined here
44
45error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
46  --> $DIR/empty-struct-unit-pat.rs:37:9
47   |
48LL |         E::Empty4() => ()
49   |         ^^^^^^^^^ not a tuple struct or tuple variant
50
51error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
52  --> $DIR/empty-struct-unit-pat.rs:41:9
53   |
54LL |         XE::XEmpty4() => (),
55   |         ^^^^-------
56   |             |
57   |             help: a tuple variant with a similar name exists: `XEmpty5`
58   | 
59  ::: $DIR/auxiliary/empty-struct.rs:8:5
60   |
61LL |     XEmpty5(),
62   |     --------- similarly named tuple variant `XEmpty5` defined here
63
64error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
65  --> $DIR/empty-struct-unit-pat.rs:46:9
66   |
67LL |         E::Empty4(..) => ()
68   |         ^^^^^^^^^ not a tuple struct or tuple variant
69
70error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
71  --> $DIR/empty-struct-unit-pat.rs:50:9
72   |
73LL |         XE::XEmpty4(..) => (),
74   |         ^^^^-------
75   |             |
76   |             help: a tuple variant with a similar name exists: `XEmpty5`
77   | 
78  ::: $DIR/auxiliary/empty-struct.rs:8:5
79   |
80LL |     XEmpty5(),
81   |     --------- similarly named tuple variant `XEmpty5` defined here
82
83error: aborting due to 8 previous errors
84
85For more information about this error, try `rustc --explain E0532`.