2019-10-14 19:20:50 -05:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found struct `Empty1`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/empty-struct-braces-pat-2.rs:15:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | struct Empty1 {}
|
|
|
|
| ---------------- `Empty1` defined here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Empty1() => ()
|
2020-07-09 19:42:07 -05:00
|
|
|
| ^^^^^^^^
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2020-08-09 22:29:39 -05:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:3:1
|
2020-07-09 19:42:07 -05:00
|
|
|
|
|
2020-08-09 22:29:39 -05:00
|
|
|
LL | pub struct XEmpty6();
|
2022-02-13 09:27:59 -06:00
|
|
|
| ------------------ similarly named tuple struct `XEmpty6` defined here
|
2020-07-09 19:42:07 -05:00
|
|
|
|
|
|
|
|
help: use struct pattern syntax instead
|
|
|
|
|
|
|
|
|
LL | Empty1 {} => ()
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~~~
|
2020-08-09 22:29:39 -05:00
|
|
|
help: a tuple struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | XEmpty6() => ()
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found struct `XEmpty1`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/empty-struct-braces-pat-2.rs:18:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | XEmpty1() => ()
|
2020-07-09 19:42:07 -05:00
|
|
|
| ^^^^^^^^^
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2020-08-09 23:14:59 -05:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:1:1
|
2020-07-09 19:42:07 -05:00
|
|
|
|
|
2020-08-09 23:14:59 -05:00
|
|
|
LL | pub struct XEmpty1 {}
|
|
|
|
| ------------------ `XEmpty1` defined here
|
|
|
|
LL | pub struct XEmpty2;
|
2020-08-09 22:29:39 -05:00
|
|
|
LL | pub struct XEmpty6();
|
2022-02-13 09:27:59 -06:00
|
|
|
| ------------------ similarly named tuple struct `XEmpty6` defined here
|
2020-07-09 19:42:07 -05:00
|
|
|
|
|
|
|
|
help: use struct pattern syntax instead
|
|
|
|
|
|
|
|
|
LL | XEmpty1 {} => ()
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~~~~
|
2020-08-09 22:29:39 -05:00
|
|
|
help: a tuple struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | XEmpty6() => ()
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found struct `Empty1`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/empty-struct-braces-pat-2.rs:21:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | struct Empty1 {}
|
|
|
|
| ---------------- `Empty1` defined here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Empty1(..) => ()
|
2020-07-09 19:42:07 -05:00
|
|
|
| ^^^^^^^^^^
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2020-08-09 22:29:39 -05:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:3:1
|
2020-07-09 19:42:07 -05:00
|
|
|
|
|
2020-08-09 22:29:39 -05:00
|
|
|
LL | pub struct XEmpty6();
|
2022-02-13 09:27:59 -06:00
|
|
|
| ------------------ similarly named tuple struct `XEmpty6` defined here
|
2020-07-09 19:42:07 -05:00
|
|
|
|
|
|
|
|
help: use struct pattern syntax instead
|
|
|
|
|
|
|
|
|
LL | Empty1 {} => ()
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~~~
|
2020-08-09 22:29:39 -05:00
|
|
|
help: a tuple struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | XEmpty6(..) => ()
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found struct `XEmpty1`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/empty-struct-braces-pat-2.rs:24:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | XEmpty1(..) => ()
|
2020-07-09 19:42:07 -05:00
|
|
|
| ^^^^^^^^^^^
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2020-08-09 23:14:59 -05:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:1:1
|
2020-07-09 19:42:07 -05:00
|
|
|
|
|
2020-08-09 23:14:59 -05:00
|
|
|
LL | pub struct XEmpty1 {}
|
|
|
|
| ------------------ `XEmpty1` defined here
|
|
|
|
LL | pub struct XEmpty2;
|
2020-08-09 22:29:39 -05:00
|
|
|
LL | pub struct XEmpty6();
|
2022-02-13 09:27:59 -06:00
|
|
|
| ------------------ similarly named tuple struct `XEmpty6` defined here
|
2020-07-09 19:42:07 -05:00
|
|
|
|
|
|
|
|
help: use struct pattern syntax instead
|
|
|
|
|
|
|
|
|
LL | XEmpty1 {} => ()
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~~~~
|
2020-08-09 22:29:39 -05:00
|
|
|
help: a tuple struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | XEmpty6(..) => ()
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0532`.
|