fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

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