fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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