fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
1.7 KiB64 linesraw
1error: this file contains an un-closed delimiter
2  --> $DIR/issue-62973.rs:8:2
3   |
4LL | fn p() { match s { v, E { [) {) }
5   |        -         - un-closed delimiter
6   |        |
7   |        un-closed delimiter
8LL | 
9LL | 
10   |  ^
11
12error: expected one of `,` or `}`, found `{`
13  --> $DIR/issue-62973.rs:6:25
14   |
15LL | fn p() { match s { v, E { [) {) }
16   |        -       -       -^ expected one of `,` or `}`
17   |        |       |       |
18   |        |       |       help: `}` may belong here
19   |        |       while parsing this struct
20   |        unclosed delimiter
21
22error: struct literals are not allowed here
23  --> $DIR/issue-62973.rs:6:16
24   |
25LL |   fn p() { match s { v, E { [) {) }
26   |  ________________^
27LL | |
28LL | |
29   | |_^
30   |
31help: surround the struct literal with parentheses
32   |
33LL | fn p() { match (s { v, E { [) {) }
34LL | 
35LL | )
36   |
37
38error: expected one of `.`, `?`, `{`, or an operator, found `}`
39  --> $DIR/issue-62973.rs:8:2
40   |
41LL | fn p() { match s { v, E { [) {) }
42   |          ----- while parsing this match expression
43LL | 
44LL | 
45   |  ^ expected one of `.`, `?`, `{`, or an operator
46
47error: incorrect close delimiter: `)`
48  --> $DIR/issue-62973.rs:6:28
49   |
50LL | fn p() { match s { v, E { [) {) }
51   |                           -^ incorrect close delimiter
52   |                           |
53   |                           un-closed delimiter
54
55error: incorrect close delimiter: `)`
56  --> $DIR/issue-62973.rs:6:31
57   |
58LL | fn p() { match s { v, E { [) {) }
59   |                              -^ incorrect close delimiter
60   |                              |
61   |                              un-closed delimiter
62
63error: aborting due to 6 previous errors
64