]> git.proxmox.com Git - rustc.git/blame - src/test/ui/did_you_mean/issue-48492-tuple-destructure-missing-parens.stderr
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / did_you_mean / issue-48492-tuple-destructure-missing-parens.stderr
CommitLineData
0531ce1d 1error: unexpected `,` in pattern
0731742a 2 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:38:17
0531ce1d
XL
3 |
4LL | while let b1, b2, b3 = reading_frame.next().expect("there should be a start codon") {
9fa01778 5 | ^
e74abb32 6 |
dfeec247 7help: try adding parentheses to match on a tuple...
9fa01778
XL
8 |
9LL | while let (b1, b2, b3) = reading_frame.next().expect("there should be a start codon") {
10 | ^^^^^^^^^^^^
dfeec247 11help: ...or a vertical bar to match on multiple alternatives
9fa01778
XL
12 |
13LL | while let b1 | b2 | b3 = reading_frame.next().expect("there should be a start codon") {
14 | ^^^^^^^^^^^^
0531ce1d
XL
15
16error: unexpected `,` in pattern
0731742a 17 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:49:14
0531ce1d
XL
18 |
19LL | if let b1, b2, b3 = reading_frame.next().unwrap() {
9fa01778 20 | ^
e74abb32 21 |
dfeec247 22help: try adding parentheses to match on a tuple...
9fa01778
XL
23 |
24LL | if let (b1, b2, b3) = reading_frame.next().unwrap() {
25 | ^^^^^^^^^^^^
dfeec247 26help: ...or a vertical bar to match on multiple alternatives
9fa01778
XL
27 |
28LL | if let b1 | b2 | b3 = reading_frame.next().unwrap() {
29 | ^^^^^^^^^^^^
0531ce1d
XL
30
31error: unexpected `,` in pattern
0731742a 32 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:59:28
0531ce1d
XL
33 |
34LL | Nucleotide::Adenine, Nucleotide::Cytosine, _ => true
9fa01778 35 | ^
e74abb32 36 |
dfeec247 37help: try adding parentheses to match on a tuple...
9fa01778
XL
38 |
39LL | (Nucleotide::Adenine, Nucleotide::Cytosine, _) => true
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dfeec247 41help: ...or a vertical bar to match on multiple alternatives
9fa01778
XL
42 |
43LL | Nucleotide::Adenine | Nucleotide::Cytosine | _ => true
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0531ce1d
XL
45
46error: unexpected `,` in pattern
0731742a 47 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:67:10
0531ce1d
XL
48 |
49LL | 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
52error: unexpected `,` in pattern
0731742a 53 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:75:10
0531ce1d
XL
54 |
55LL | 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
58error: unexpected `,` in pattern
0731742a 59 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:84:14
0531ce1d
XL
60 |
61LL | 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
64error: aborting due to 6 previous errors
65