fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0769]: tuple variant `E::S` written as struct variant 2 --> $DIR/struct-tuple-field-names.rs:8:9 3 | 4LL | E::S { 0, 1 } => {} 5 | ^^^^^^^^^^^^^ 6 | 7help: use the tuple variant pattern syntax instead 8 | 9LL | E::S(_, _) => {} 10 | ~~~~~~ 11 12error[E0769]: tuple variant `S` written as struct variant 13 --> $DIR/struct-tuple-field-names.rs:13:9 14 | 15LL | S { } => {} 16 | ^^^^^ 17 | 18help: use the tuple variant pattern syntax instead 19 | 20LL | S(_, _) => {} 21 | ~~~~~~ 22 23error[E0027]: pattern does not mention field `1` 24 --> $DIR/struct-tuple-field-names.rs:16:12 25 | 26LL | if let E::S { 0: a } = x { 27 | ^^^^^^^^^^^^^ missing field `1` 28 | 29help: include the missing field in the pattern 30 | 31LL | if let E::S { 0: a, 1: _ } = x { 32 | ~~~~~~~~ 33help: if you don't care about this missing field, you can explicitly ignore it 34 | 35LL | if let E::S { 0: a, .. } = x { 36 | ~~~~~~ 37 38error: aborting due to 3 previous errors 39 40Some errors have detailed explanations: E0027, E0769. 41For more information about an error, try `rustc --explain E0027`.