fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.1 KiB47 linesraw
1error: this file contains an unclosed delimiter
2  --> $DIR/issue-63135.rs:3:16
3   |
4LL | fn i(n{...,f #
5   |     - -        ^
6   |     | |
7   |     | unclosed delimiter
8   |     unclosed delimiter
9
10error: this file contains an unclosed delimiter
11  --> $DIR/issue-63135.rs:3:16
12   |
13LL | fn i(n{...,f #
14   |     - -        ^
15   |     | |
16   |     | unclosed delimiter
17   |     unclosed delimiter
18
19error: expected field pattern, found `...`
20  --> $DIR/issue-63135.rs:3:8
21   |
22LL | fn i(n{...,f #
23   |        ^^^ help: to omit remaining fields, use one fewer `.`: `..`
24
25error: expected `}`, found `,`
26  --> $DIR/issue-63135.rs:3:11
27   |
28LL | fn i(n{...,f #
29   |        ---^
30   |        |  |
31   |        |  expected `}`
32   |        `..` must be at the end and cannot have a trailing comma
33
34error: expected `[`, found `}`
35  --> $DIR/issue-63135.rs:3:16
36   |
37LL | fn i(n{...,f #
38   |                ^ expected `[`
39
40error: expected one of `:` or `|`, found `)`
41  --> $DIR/issue-63135.rs:3:16
42   |
43LL | fn i(n{...,f #
44   |                ^ expected one of `:` or `|`
45
46error: aborting due to 6 previous errors
47