2022-10-25 20:15:15 +04:00
|
|
|
error[E0164]: expected tuple struct or tuple variant, found struct variant `E::Empty3`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/empty-struct-braces-pat-3.rs:17:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
|
LL | E::Empty3() => ()
|
2022-10-25 20:15:15 +04:00
|
|
|
| ^^^^^^^^^^^ not a tuple struct or tuple variant
|
2024-08-25 04:24:27 +09:00
|
|
|
|
|
|
|
|
|
help: use the struct variant pattern syntax
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - E::Empty3() => ()
|
|
|
|
|
LL + E::Empty3 {} => ()
|
|
|
|
|
|
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2022-10-25 20:15:15 +04:00
|
|
|
error[E0164]: expected tuple struct or tuple variant, found struct variant `XE::XEmpty3`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/empty-struct-braces-pat-3.rs:21:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
|
LL | XE::XEmpty3() => ()
|
2022-10-25 20:15:15 +04:00
|
|
|
| ^^^^^^^^^^^^^ not a tuple struct or tuple variant
|
2024-08-25 04:24:27 +09:00
|
|
|
|
|
|
|
|
|
help: use the struct variant pattern syntax
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - XE::XEmpty3() => ()
|
|
|
|
|
LL + XE::XEmpty3 {} => ()
|
|
|
|
|
|
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2022-10-25 20:15:15 +04:00
|
|
|
error[E0164]: expected tuple struct or tuple variant, found struct variant `E::Empty3`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/empty-struct-braces-pat-3.rs:25:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
|
LL | E::Empty3(..) => ()
|
2022-10-25 20:15:15 +04:00
|
|
|
| ^^^^^^^^^^^^^ not a tuple struct or tuple variant
|
2024-08-25 04:24:27 +09:00
|
|
|
|
|
|
|
|
|
help: use the struct variant pattern syntax
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - E::Empty3(..) => ()
|
|
|
|
|
LL + E::Empty3 {} => ()
|
|
|
|
|
|
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2022-10-25 20:15:15 +04:00
|
|
|
error[E0164]: expected tuple struct or tuple variant, found struct variant `XE::XEmpty3`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/empty-struct-braces-pat-3.rs:29:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
|
LL | XE::XEmpty3(..) => ()
|
2022-10-25 20:15:15 +04:00
|
|
|
| ^^^^^^^^^^^^^^^ not a tuple struct or tuple variant
|
2024-08-25 04:24:27 +09:00
|
|
|
|
|
|
|
|
|
help: use the struct variant pattern syntax
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - XE::XEmpty3(..) => ()
|
|
|
|
|
LL + XE::XEmpty3 {} => ()
|
|
|
|
|
|
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
2022-10-25 20:15:15 +04:00
|
|
|
For more information about this error, try `rustc --explain E0164`.
|