mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
28 lines
714 B
Plaintext
28 lines
714 B
Plaintext
error[E0769]: tuple variant `S` written as struct variant
|
|
--> $DIR/tuple-variant-written-as-empty-struct-variant.rs:5:9
|
|
|
|
|
LL | let S {} = S(0);
|
|
| ^^^^
|
|
|
|
|
help: use the tuple variant pattern syntax instead
|
|
|
|
|
LL - let S {} = S(0);
|
|
LL + let S(_) = S(0);
|
|
|
|
|
|
|
error[E0769]: tuple variant `E::V` written as struct variant
|
|
--> $DIR/tuple-variant-written-as-empty-struct-variant.rs:6:9
|
|
|
|
|
LL | let E::V {} = E::V(0);
|
|
| ^^^^^^^
|
|
|
|
|
help: use the tuple variant pattern syntax instead
|
|
|
|
|
LL - let E::V {} = E::V(0);
|
|
LL + let E::V(_) = E::V(0);
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0769`.
|