2018-08-08 14:28:26 +02:00
|
|
|
error[E0530]: match bindings cannot shadow tuple structs
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/empty-struct-tuple-pat.rs:22:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | struct Empty2();
|
2018-11-11 19:46:04 +03:00
|
|
|
| ---------------- the tuple struct `Empty2` is defined here
|
2018-08-08 14:28:26 +02:00
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | Empty2 => ()
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^^^ cannot be named the same as a tuple struct
|
|
|
|
|
|
|
|
error[E0530]: match bindings cannot shadow tuple structs
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/empty-struct-tuple-pat.rs:25:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | use empty_struct::*;
|
2018-11-11 19:46:04 +03:00
|
|
|
| --------------- the tuple struct `XEmpty6` is imported here
|
2018-08-08 14:28:26 +02:00
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | XEmpty6 => ()
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^^^^ cannot be named the same as a tuple struct
|
|
|
|
|
2019-10-14 17:20:50 -07:00
|
|
|
error[E0532]: expected unit struct, unit variant or constant, found tuple variant `E::Empty4`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/empty-struct-tuple-pat.rs:29:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-09-22 11:27:55 -07:00
|
|
|
LL | Empty4()
|
|
|
|
| -------- `E::Empty4` defined here
|
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | E::Empty4 => ()
|
2019-09-22 11:27:55 -07:00
|
|
|
| ^^^^^^^^^ did you mean `E::Empty4( /* fields */ )`?
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2019-10-14 17:20:50 -07:00
|
|
|
error[E0532]: expected unit struct, unit variant or constant, found tuple variant `XE::XEmpty5`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/empty-struct-tuple-pat.rs:33:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | XE::XEmpty5 => (),
|
|
|
|
| ^^^^-------
|
2019-09-21 23:36:12 +08:00
|
|
|
| | |
|
|
|
|
| | help: a unit variant with a similar name exists: `XEmpty4`
|
2019-09-22 11:27:55 -07:00
|
|
|
| did you mean `XE::XEmpty5( /* fields */ )`?
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
Some errors have detailed explanations: E0530, E0532.
|
2018-08-08 14:28:26 +02:00
|
|
|
For more information about an error, try `rustc --explain E0530`.
|