]> git.proxmox.com Git - rustc.git/blob - src/test/ui/did_you_mean/issue-48492-tuple-destructure-missing-parens.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / did_you_mean / issue-48492-tuple-destructure-missing-parens.stderr
1 error: unexpected `,` in pattern
2 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:38:17
3 |
4 LL | 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 |
9 help: try adding parentheses to match on a tuple
10 |
11 LL | while let (b1, b2, b3) = reading_frame.next().expect("there should be a start codon") {
12 | + +
13
14 error: unexpected `,` in pattern
15 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:49:14
16 |
17 LL | if let b1, b2, b3 = reading_frame.next().unwrap() {
18 | ^
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
25 error: unexpected `,` in pattern
26 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:59:28
27 |
28 LL | Nucleotide::Adenine, Nucleotide::Cytosine, _ => true
29 | ^
30 |
31 help: try adding parentheses to match on a tuple...
32 |
33 LL | (Nucleotide::Adenine, Nucleotide::Cytosine, _) => true
34 | + +
35 help: ...or a vertical bar to match on multiple alternatives
36 |
37 LL | Nucleotide::Adenine | Nucleotide::Cytosine | _ => true
38 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39
40 error: unexpected `,` in pattern
41 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:67:10
42 |
43 LL | for x, _barr_body in women.iter().map(|woman| woman.allosomes.clone()) {
44 | ^
45 |
46 help: try adding parentheses to match on a tuple
47 |
48 LL | for (x, _barr_body) in women.iter().map(|woman| woman.allosomes.clone()) {
49 | + +
50
51 error: unexpected `,` in pattern
52 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:75:10
53 |
54 LL | for x, y @ Allosome::Y(_) in men.iter().map(|man| man.allosomes.clone()) {
55 | ^
56 |
57 help: try adding parentheses to match on a tuple
58 |
59 LL | for (x, y @ Allosome::Y(_)) in men.iter().map(|man| man.allosomes.clone()) {
60 | + +
61
62 error: unexpected `,` in pattern
63 --> $DIR/issue-48492-tuple-destructure-missing-parens.rs:84:14
64 |
65 LL | let women, men: (Vec<Genome>, Vec<Genome>) = genomes.iter().cloned()
66 | ^
67 |
68 help: try adding parentheses to match on a tuple
69 |
70 LL | let (women, men): (Vec<Genome>, Vec<Genome>) = genomes.iter().cloned()
71 | + +
72
73 error: aborting due to 6 previous errors
74