2019-10-15 00:20:50 +00:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/empty-struct-unit-pat.rs:21:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
LL | struct Empty2;
|
|
|
|
| -------------- `Empty2` defined here
|
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | Empty2() => ()
|
2021-05-02 09:46:29 +00:00
|
|
|
| ^^^^^^^^
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct XEmpty6();
|
2022-02-13 15:27:59 +00:00
|
|
|
| ------------------ similarly named tuple struct `XEmpty6` defined here
|
2021-05-02 09:46:29 +00:00
|
|
|
|
|
|
|
|
help: use this syntax instead
|
|
|
|
|
|
|
|
|
LL | Empty2 => ()
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~
|
2021-05-02 09:46:29 +00:00
|
|
|
help: a tuple struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | XEmpty6() => ()
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/empty-struct-unit-pat.rs:24:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | XEmpty2() => ()
|
2021-05-02 09:46:29 +00:00
|
|
|
| ^^^^^^^^^
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:2:1
|
2019-10-15 00:20:50 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
LL | pub struct XEmpty2;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ------------------ `XEmpty2` defined here
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | pub struct XEmpty6();
|
2022-02-13 15:27:59 +00:00
|
|
|
| ------------------ similarly named tuple struct `XEmpty6` defined here
|
2021-05-02 09:46:29 +00:00
|
|
|
|
|
|
|
|
help: use this syntax instead
|
|
|
|
|
|
|
|
|
LL | XEmpty2 => ()
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~
|
2021-05-02 09:46:29 +00:00
|
|
|
help: a tuple struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | XEmpty6() => ()
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
|
|
|
|
--> $DIR/empty-struct-unit-pat.rs:28:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
LL | struct Empty2;
|
|
|
|
| -------------- `Empty2` defined here
|
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | Empty2(..) => ()
|
2021-05-02 09:46:29 +00:00
|
|
|
| ^^^^^^^^^^
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:3:1
|
|
|
|
|
|
|
|
|
LL | pub struct XEmpty6();
|
2022-02-13 15:27:59 +00:00
|
|
|
| ------------------ similarly named tuple struct `XEmpty6` defined here
|
2021-05-02 09:46:29 +00:00
|
|
|
|
|
|
|
|
help: use this syntax instead
|
|
|
|
|
|
|
|
|
LL | Empty2 => ()
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~
|
2021-05-02 09:46:29 +00:00
|
|
|
help: a tuple struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | XEmpty6(..) => ()
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
|
|
|
|
--> $DIR/empty-struct-unit-pat.rs:32:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | XEmpty2(..) => ()
|
2021-05-02 09:46:29 +00:00
|
|
|
| ^^^^^^^^^^^
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:2:1
|
2019-10-15 00:20:50 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
LL | pub struct XEmpty2;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ------------------ `XEmpty2` defined here
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | pub struct XEmpty6();
|
2022-02-13 15:27:59 +00:00
|
|
|
| ------------------ similarly named tuple struct `XEmpty6` defined here
|
2021-05-02 09:46:29 +00:00
|
|
|
|
|
|
|
|
help: use this syntax instead
|
|
|
|
|
|
|
|
|
LL | XEmpty2 => ()
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~
|
2021-05-02 09:46:29 +00:00
|
|
|
help: a tuple struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | XEmpty6(..) => ()
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
|
|
|
|
--> $DIR/empty-struct-unit-pat.rs:37:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
LL | Empty4
|
|
|
|
| ------ `E::Empty4` defined here
|
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | E::Empty4() => ()
|
2021-05-02 09:46:29 +00:00
|
|
|
| ^^^^^^^^^^^ help: use this syntax instead: `E::Empty4`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
|
|
|
|
--> $DIR/empty-struct-unit-pat.rs:41:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | XE::XEmpty4() => (),
|
2021-05-02 09:46:29 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:7:5
|
2019-10-15 00:20:50 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
LL | XEmpty4,
|
|
|
|
| ------- `XE::XEmpty4` defined here
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | XEmpty5(),
|
2022-07-04 09:13:16 +00:00
|
|
|
| ------- similarly named tuple variant `XEmpty5` defined here
|
2021-05-02 09:46:29 +00:00
|
|
|
|
|
|
|
|
help: use this syntax instead
|
|
|
|
|
|
|
|
|
LL | XE::XEmpty4 => (),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~
|
2021-05-02 09:46:29 +00:00
|
|
|
help: a tuple variant with a similar name exists
|
|
|
|
|
|
|
|
|
LL | XE::XEmpty5() => (),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
|
|
|
|
--> $DIR/empty-struct-unit-pat.rs:46:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
LL | Empty4
|
|
|
|
| ------ `E::Empty4` defined here
|
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | E::Empty4(..) => ()
|
2021-05-02 09:46:29 +00:00
|
|
|
| ^^^^^^^^^^^^^ help: use this syntax instead: `E::Empty4`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
|
|
|
|
--> $DIR/empty-struct-unit-pat.rs:50:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | XE::XEmpty4(..) => (),
|
2021-05-02 09:46:29 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:7:5
|
2019-10-15 00:20:50 +00:00
|
|
|
|
|
2021-05-02 09:46:29 +00:00
|
|
|
LL | XEmpty4,
|
|
|
|
| ------- `XE::XEmpty4` defined here
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | XEmpty5(),
|
2022-07-04 09:13:16 +00:00
|
|
|
| ------- similarly named tuple variant `XEmpty5` defined here
|
2021-05-02 09:46:29 +00:00
|
|
|
|
|
|
|
|
help: use this syntax instead
|
|
|
|
|
|
|
|
|
LL | XE::XEmpty4 => (),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~
|
2021-05-02 09:46:29 +00:00
|
|
|
help: a tuple variant with a similar name exists
|
|
|
|
|
|
|
|
|
LL | XE::XEmpty5(..) => (),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0532`.
|