]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-49257.stderr
Clean up span in non-trailing `..` suggestion
[rust.git] / src / test / ui / issues / issue-49257.stderr
1 error: expected `}`, found `,`
2   --> $DIR/issue-49257.rs:20:19
3    |
4 LL |     let Point { .., y, } = p; //~ ERROR expected `}`, found `,`
5    |                 --^
6    |                 | |
7    |                 | expected `}`
8    |                 `..` must be at the end and cannot have a trailing comma
9 help: move the `..` to the end of the field list
10    |
11 LL |     let Point { y, .. } = p; //~ ERROR expected `}`, found `,`
12    |                --  ^^^^
13
14 error: expected `}`, found `,`
15   --> $DIR/issue-49257.rs:21:19
16    |
17 LL |     let Point { .., y } = p; //~ ERROR expected `}`, found `,`
18    |                 --^
19    |                 | |
20    |                 | expected `}`
21    |                 `..` must be at the end and cannot have a trailing comma
22 help: move the `..` to the end of the field list
23    |
24 LL |     let Point { y , .. } = p; //~ ERROR expected `}`, found `,`
25    |                -- ^^^^^^
26
27 error: expected `}`, found `,`
28   --> $DIR/issue-49257.rs:22:19
29    |
30 LL |     let Point { .., } = p; //~ ERROR expected `}`, found `,`
31    |                 --^
32    |                 | |
33    |                 | expected `}`
34    |                 | help: remove this comma
35    |                 `..` must be at the end and cannot have a trailing comma
36
37 error: aborting due to 3 previous errors
38