summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-49257.stderr
blob: 846467f7f22681ae47b60cbf5c31724af38c5475 (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
39
40
41
42
error: expected `}`, found `,`
  --> $DIR/issue-49257.rs:10:19
   |
LL |     let Point { .., y, } = p;
   |                 --^
   |                 | |
   |                 | 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;
LL +     let Point { y, .. } = p;
   |

error: expected `}`, found `,`
  --> $DIR/issue-49257.rs:11:19
   |
LL |     let Point { .., y } = p;
   |                 --^
   |                 | |
   |                 | 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;
LL +     let Point { y , .. } = p;
   |

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

error: aborting due to 3 previous errors