summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-112188.stderr
blob: 6d2d8e6a3b0554fdbd28ff304edf003c4545cd2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
error: expected `}`, found `,`
  --> $DIR/issue-112188.rs:10:17
   |
LL |     let Foo { .., } = f;
   |               --^
   |               | |
   |               | expected `}`
   |               | help: remove this comma
   |               `..` must be at the end and cannot have a trailing comma

error: expected `}`, found `,`
  --> $DIR/issue-112188.rs:12:17
   |
LL |     let Foo { .., x } = f;
   |               --^
   |               | |
   |               | expected `}`
   |               `..` must be at the end and cannot have a trailing comma
   |
help: move the `..` to the end of the field list
   |
LL -     let Foo { .., x } = f;
LL +     let Foo { x, .. } = f;
   |

error: expected `}`, found `,`
  --> $DIR/issue-112188.rs:13:17
   |
LL |     let Foo { .., x, .. } = f;
   |               --^-
   |               | |
   |               | expected `}`
   |               `..` must be at the end and cannot have a trailing comma
   |               help: remove the starting `..`

error: aborting due to 3 previous errors