rust/src/test/ui/empty/empty-struct-unit-pat.stderr

56 lines
2.2 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0532]: expected tuple struct/variant, found unit struct `Empty2`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-unit-pat.rs:21:9
2018-08-08 07:28:26 -05:00
|
LL | Empty2() => () //~ ERROR expected tuple struct/variant, found unit struct `Empty2`
| ^^^^^^ did you mean `XEmpty6`?
error[E0532]: expected tuple struct/variant, found unit struct `XEmpty2`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-unit-pat.rs:24:9
2018-08-08 07:28:26 -05:00
|
LL | XEmpty2() => () //~ ERROR expected tuple struct/variant, found unit struct `XEmpty2`
| ^^^^^^^ did you mean `XEmpty6`?
error[E0532]: expected tuple struct/variant, found unit struct `Empty2`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-unit-pat.rs:27:9
2018-08-08 07:28:26 -05:00
|
LL | Empty2(..) => () //~ ERROR expected tuple struct/variant, found unit struct `Empty2`
| ^^^^^^ did you mean `XEmpty6`?
error[E0532]: expected tuple struct/variant, found unit struct `XEmpty2`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-unit-pat.rs:30:9
2018-08-08 07:28:26 -05:00
|
LL | XEmpty2(..) => () //~ ERROR expected tuple struct/variant, found unit struct `XEmpty2`
| ^^^^^^^ did you mean `XEmpty6`?
error[E0532]: expected tuple struct/variant, found unit variant `E::Empty4`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-unit-pat.rs:34:9
2018-08-08 07:28:26 -05:00
|
LL | E::Empty4() => () //~ ERROR expected tuple struct/variant, found unit variant `E::Empty4`
| ^^^^^^^^^ not a tuple struct/variant
error[E0532]: expected tuple struct/variant, found unit variant `XE::XEmpty4`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-unit-pat.rs:37:9
2018-08-08 07:28:26 -05:00
|
LL | XE::XEmpty4() => (),
| ^^^^-------
| |
| did you mean `XEmpty5`?
error[E0532]: expected tuple struct/variant, found unit variant `E::Empty4`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-unit-pat.rs:42:9
2018-08-08 07:28:26 -05:00
|
LL | E::Empty4(..) => () //~ ERROR expected tuple struct/variant, found unit variant `E::Empty4`
| ^^^^^^^^^ not a tuple struct/variant
error[E0532]: expected tuple struct/variant, found unit variant `XE::XEmpty4`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-unit-pat.rs:45:9
2018-08-08 07:28:26 -05:00
|
LL | XE::XEmpty4(..) => (),
| ^^^^-------
| |
| did you mean `XEmpty5`?
error: aborting due to 8 previous errors
For more information about this error, try `rustc --explain E0532`.