summary refs log tree commit diff
path: root/src/test/ui/issue-49257.stderr
blob: 40179832b49b271bee71a2151c2ec9ecc1a6775a (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
38
error: expected `}`, found `,`
  --> $DIR/issue-49257.rs:20:19
   |
LL |     let Point { .., y, } = p; //~ ERROR expected `}`, found `,`
   |                 --^
   |                 | |
   |                 | expected `}`
   |                 `..` must be at the end and cannot have a trailing comma
help: move the `..` to the end of the field list
   |
LL |     let Point {  y, .. } = p; //~ ERROR expected `}`, found `,`
   |                --   ^^^^

error: expected `}`, found `,`
  --> $DIR/issue-49257.rs:21:19
   |
LL |     let Point { .., y } = p; //~ ERROR expected `}`, found `,`
   |                 --^
   |                 | |
   |                 | expected `}`
   |                 `..` must be at the end and cannot have a trailing comma
help: move the `..` to the end of the field list
   |
LL |     let Point {  y , .. } = p; //~ ERROR expected `}`, found `,`
   |                --  ^^^^^^

error: expected `}`, found `,`
  --> $DIR/issue-49257.rs:22:19
   |
LL |     let Point { .., } = p; //~ ERROR expected `}`, found `,`
   |                 --^
   |                 | |
   |                 | expected `}`
   |                 | help: remove this comma
   |                 `..` must be at the end and cannot have a trailing comma

error: aborting due to 3 previous errors