fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: unexpected `,` in pattern 2 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:38:17 3 | 4LL | while let b1, b2, b3 = reading_frame.next().expect("there should be a start codon") { 5 | ^ 6help: try adding parentheses to match on a tuple.. 7 | 8LL | while let (b1, b2, b3) = reading_frame.next().expect("there should be a start codon") { 9 | ^^^^^^^^^^^^ 10help: ..or a vertical bar to match on multiple alternatives 11 | 12LL | while let b1 | b2 | b3 = reading_frame.next().expect("there should be a start codon") { 13 | ^^^^^^^^^^^^ 14 15error: unexpected `,` in pattern 16 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:49:14 17 | 18LL | if let b1, b2, b3 = reading_frame.next().unwrap() { 19 | ^ 20help: try adding parentheses to match on a tuple.. 21 | 22LL | if let (b1, b2, b3) = reading_frame.next().unwrap() { 23 | ^^^^^^^^^^^^ 24help: ..or a vertical bar to match on multiple alternatives 25 | 26LL | if let b1 | b2 | b3 = reading_frame.next().unwrap() { 27 | ^^^^^^^^^^^^ 28 29error: unexpected `,` in pattern 30 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:59:28 31 | 32LL | Nucleotide::Adenine, Nucleotide::Cytosine, _ => true 33 | ^ 34help: try adding parentheses to match on a tuple.. 35 | 36LL | (Nucleotide::Adenine, Nucleotide::Cytosine, _) => true 37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 38help: ..or a vertical bar to match on multiple alternatives 39 | 40LL | Nucleotide::Adenine | Nucleotide::Cytosine | _ => true 41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 42 43error: unexpected `,` in pattern 44 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:67:10 45 | 46LL | for x, _barr_body in women.iter().map(|woman| woman.allosomes.clone()) { 47 | ^ 48help: try adding parentheses to match on a tuple.. 49 | 50LL | for (x, _barr_body) in women.iter().map(|woman| woman.allosomes.clone()) { 51 | ^^^^^^^^^^^^^^^ 52help: ..or a vertical bar to match on multiple alternatives 53 | 54LL | for x | _barr_body in women.iter().map(|woman| woman.allosomes.clone()) { 55 | ^^^^^^^^^^^^^^ 56 57error: unexpected `,` in pattern 58 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:75:10 59 | 60LL | for x, y @ Allosome::Y(_) in men.iter().map(|man| man.allosomes.clone()) { 61 | ^ 62help: try adding parentheses to match on a tuple.. 63 | 64LL | for (x, y @ Allosome::Y(_)) in men.iter().map(|man| man.allosomes.clone()) { 65 | ^^^^^^^^^^^^^^^^^^^^^^^ 66help: ..or a vertical bar to match on multiple alternatives 67 | 68LL | for x | y @ Allosome::Y(_) in men.iter().map(|man| man.allosomes.clone()) { 69 | ^^^^^^^^^^^^^^^^^^^^^^ 70 71error: unexpected `,` in pattern 72 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:84:14 73 | 74LL | let women, men: (Vec<Genome>, Vec<Genome>) = genomes.iter().cloned() 75 | ^ 76help: try adding parentheses to match on a tuple.. 77 | 78LL | let (women, men): (Vec<Genome>, Vec<Genome>) = genomes.iter().cloned() 79 | ^^^^^^^^^^^^ 80help: ..or a vertical bar to match on multiple alternatives 81 | 82LL | let women | men: (Vec<Genome>, Vec<Genome>) = genomes.iter().cloned() 83 | ^^^^^^^^^^^ 84 85error: aborting due to 6 previous errors 86