fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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 | ----- ^ 6 | | 7 | while parsing the condition of this `while` expression 8 | 9help: try adding parentheses to match on a tuple 10 | 11LL | while let (b1, b2, b3) = reading_frame.next().expect("there should be a start codon") { 12 | + + 13 14error: unexpected `,` in pattern 15 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:49:14 16 | 17LL | if let b1, b2, b3 = reading_frame.next().unwrap() { 18 | ^ 19 | 20help: try adding parentheses to match on a tuple 21 | 22LL | if let (b1, b2, b3) = reading_frame.next().unwrap() { 23 | + + 24 25error: unexpected `,` in pattern 26 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:59:28 27 | 28LL | Nucleotide::Adenine, Nucleotide::Cytosine, _ => true 29 | ^ 30 | 31help: try adding parentheses to match on a tuple... 32 | 33LL | (Nucleotide::Adenine, Nucleotide::Cytosine, _) => true 34 | + + 35help: ...or a vertical bar to match on multiple alternatives 36 | 37LL | Nucleotide::Adenine | Nucleotide::Cytosine | _ => true 38 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 40error: unexpected `,` in pattern 41 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:67:10 42 | 43LL | for x, _barr_body in women.iter().map(|woman| woman.allosomes.clone()) { 44 | ^ 45 | 46help: try adding parentheses to match on a tuple 47 | 48LL | for (x, _barr_body) in women.iter().map(|woman| woman.allosomes.clone()) { 49 | + + 50 51error: unexpected `,` in pattern 52 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:75:10 53 | 54LL | for x, y @ Allosome::Y(_) in men.iter().map(|man| man.allosomes.clone()) { 55 | ^ 56 | 57help: try adding parentheses to match on a tuple 58 | 59LL | for (x, y @ Allosome::Y(_)) in men.iter().map(|man| man.allosomes.clone()) { 60 | + + 61 62error: unexpected `,` in pattern 63 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:84:14 64 | 65LL | let women, men: (Vec<Genome>, Vec<Genome>) = genomes.iter().cloned() 66 | ^ 67 | 68 = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728> 69help: try adding parentheses to match on a tuple 70 | 71LL | let (women, men): (Vec<Genome>, Vec<Genome>) = genomes.iter().cloned() 72 | + + 73 74error: aborting due to 6 previous errors 75