@@ -2,37 +2,85 @@ error: unexpected `,` in pattern
22 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:38:17
33 |
44LL | while let b1, b2, b3 = reading_frame.next().expect("there should be a start codon") {
5- | --^------- help: try adding parentheses: `(b1, b2, b3)`
5+ | ^
6+ help: try adding parentheses to match on a tuple..
7+ |
8+ LL | while let (b1, b2, b3) = reading_frame.next().expect("there should be a start codon") {
9+ | ^^^^^^^^^^^^
10+ help: ..or a vertical bar to match on multiple alternatives
11+ |
12+ LL | while let b1 | b2 | b3 = reading_frame.next().expect("there should be a start codon") {
13+ | ^^^^^^^^^^^^
614
715error: unexpected `,` in pattern
816 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:49:14
917 |
1018LL | if let b1, b2, b3 = reading_frame.next().unwrap() {
11- | --^------- help: try adding parentheses: `(b1, b2, b3)`
19+ | ^
20+ help: try adding parentheses to match on a tuple..
21+ |
22+ LL | if let (b1, b2, b3) = reading_frame.next().unwrap() {
23+ | ^^^^^^^^^^^^
24+ help: ..or a vertical bar to match on multiple alternatives
25+ |
26+ LL | if let b1 | b2 | b3 = reading_frame.next().unwrap() {
27+ | ^^^^^^^^^^^^
1228
1329error: unexpected `,` in pattern
1430 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:59:28
1531 |
1632LL | Nucleotide::Adenine, Nucleotide::Cytosine, _ => true
17- | -------------------^------------------------ help: try adding parentheses: `(Nucleotide::Adenine, Nucleotide::Cytosine, _)`
33+ | ^
34+ help: try adding parentheses to match on a tuple..
35+ |
36+ LL | (Nucleotide::Adenine, Nucleotide::Cytosine, _) => true
37+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38+ help: ..or a vertical bar to match on multiple alternatives
39+ |
40+ LL | Nucleotide::Adenine | Nucleotide::Cytosine | _ => true
41+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1842
1943error: unexpected `,` in pattern
2044 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:67:10
2145 |
2246LL | for x, _barr_body in women.iter().map(|woman| woman.allosomes.clone()) {
23- | -^----------- help: try adding parentheses: `(x, _barr_body)`
47+ | ^
48+ help: try adding parentheses to match on a tuple..
49+ |
50+ LL | for (x, _barr_body) in women.iter().map(|woman| woman.allosomes.clone()) {
51+ | ^^^^^^^^^^^^^^^
52+ help: ..or a vertical bar to match on multiple alternatives
53+ |
54+ LL | for x | _barr_body in women.iter().map(|woman| woman.allosomes.clone()) {
55+ | ^^^^^^^^^^^^^^
2456
2557error: unexpected `,` in pattern
2658 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:75:10
2759 |
2860LL | for x, y @ Allosome::Y(_) in men.iter().map(|man| man.allosomes.clone()) {
29- | -^------------------- help: try adding parentheses: `(x, y @ Allosome::Y(_))`
61+ | ^
62+ help: try adding parentheses to match on a tuple..
63+ |
64+ LL | for (x, y @ Allosome::Y(_)) in men.iter().map(|man| man.allosomes.clone()) {
65+ | ^^^^^^^^^^^^^^^^^^^^^^^
66+ help: ..or a vertical bar to match on multiple alternatives
67+ |
68+ LL | for x | y @ Allosome::Y(_) in men.iter().map(|man| man.allosomes.clone()) {
69+ | ^^^^^^^^^^^^^^^^^^^^^^
3070
3171error: unexpected `,` in pattern
3272 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:84:14
3373 |
3474LL | let women, men: (Vec<Genome>, Vec<Genome>) = genomes.iter().cloned()
35- | -----^---- help: try adding parentheses: `(women, men)`
75+ | ^
76+ help: try adding parentheses to match on a tuple..
77+ |
78+ LL | let (women, men): (Vec<Genome>, Vec<Genome>) = genomes.iter().cloned()
79+ | ^^^^^^^^^^^^
80+ help: ..or a vertical bar to match on multiple alternatives
81+ |
82+ LL | let women | men: (Vec<Genome>, Vec<Genome>) = genomes.iter().cloned()
83+ | ^^^^^^^^^^^
3684
3785error: aborting due to 6 previous errors
3886
0 commit comments