]>
Commit | Line | Data |
---|---|---|
0531ce1d | 1 | error: unexpected `,` in pattern |
0731742a | 2 | --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:38:17 |
0531ce1d XL |
3 | | |
4 | LL | while let b1, b2, b3 = reading_frame.next().expect("there should be a start codon") { | |
9fa01778 | 5 | | ^ |
e74abb32 | 6 | | |
dfeec247 | 7 | help: try adding parentheses to match on a tuple... |
9fa01778 XL |
8 | | |
9 | LL | while let (b1, b2, b3) = reading_frame.next().expect("there should be a start codon") { | |
10 | | ^^^^^^^^^^^^ | |
dfeec247 | 11 | help: ...or a vertical bar to match on multiple alternatives |
9fa01778 XL |
12 | | |
13 | LL | while let b1 | b2 | b3 = reading_frame.next().expect("there should be a start codon") { | |
14 | | ^^^^^^^^^^^^ | |
0531ce1d XL |
15 | |
16 | error: unexpected `,` in pattern | |
0731742a | 17 | --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:49:14 |
0531ce1d XL |
18 | | |
19 | LL | if let b1, b2, b3 = reading_frame.next().unwrap() { | |
9fa01778 | 20 | | ^ |
e74abb32 | 21 | | |
dfeec247 | 22 | help: try adding parentheses to match on a tuple... |
9fa01778 XL |
23 | | |
24 | LL | if let (b1, b2, b3) = reading_frame.next().unwrap() { | |
25 | | ^^^^^^^^^^^^ | |
dfeec247 | 26 | help: ...or a vertical bar to match on multiple alternatives |
9fa01778 XL |
27 | | |
28 | LL | if let b1 | b2 | b3 = reading_frame.next().unwrap() { | |
29 | | ^^^^^^^^^^^^ | |
0531ce1d XL |
30 | |
31 | error: unexpected `,` in pattern | |
0731742a | 32 | --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:59:28 |
0531ce1d XL |
33 | | |
34 | LL | Nucleotide::Adenine, Nucleotide::Cytosine, _ => true | |
9fa01778 | 35 | | ^ |
e74abb32 | 36 | | |
dfeec247 | 37 | help: try adding parentheses to match on a tuple... |
9fa01778 XL |
38 | | |
39 | LL | (Nucleotide::Adenine, Nucleotide::Cytosine, _) => true | |
40 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
dfeec247 | 41 | help: ...or a vertical bar to match on multiple alternatives |
9fa01778 XL |
42 | | |
43 | LL | Nucleotide::Adenine | Nucleotide::Cytosine | _ => true | |
44 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
0531ce1d XL |
45 | |
46 | error: unexpected `,` in pattern | |
0731742a | 47 | --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:67:10 |
0531ce1d XL |
48 | | |
49 | LL | for x, _barr_body in women.iter().map(|woman| woman.allosomes.clone()) { | |
fc512014 | 50 | | -^----------- help: try adding parentheses to match on a tuple: `(x, _barr_body)` |
0531ce1d XL |
51 | |
52 | error: unexpected `,` in pattern | |
0731742a | 53 | --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:75:10 |
0531ce1d XL |
54 | | |
55 | LL | for x, y @ Allosome::Y(_) in men.iter().map(|man| man.allosomes.clone()) { | |
fc512014 | 56 | | -^------------------- help: try adding parentheses to match on a tuple: `(x, y @ Allosome::Y(_))` |
0531ce1d XL |
57 | |
58 | error: unexpected `,` in pattern | |
0731742a | 59 | --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:84:14 |
0531ce1d XL |
60 | | |
61 | LL | let women, men: (Vec<Genome>, Vec<Genome>) = genomes.iter().cloned() | |
fc512014 | 62 | | -----^---- help: try adding parentheses to match on a tuple: `(women, men)` |
0531ce1d XL |
63 | |
64 | error: aborting due to 6 previous errors | |
65 |