fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.6 KiB61 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 `}` here
17   |                |
18   |                while parsing this struct
19
20error: struct literals are not allowed here
21  --> $DIR/issue-62973.rs:6:16
22   |
23LL |   fn p() { match s { v, E { [) {) }
24   |  ________________^
25LL | |
26LL | |
27   | |_^
28help: surround the struct literal with parentheses
29   |
30LL | fn p() { match (s { v, E { [) {) }
31LL | 
32LL | )
33   |
34
35error: expected one of `.`, `?`, `{`, or an operator, found `}`
36  --> $DIR/issue-62973.rs:8:1
37   |
38LL | fn p() { match s { v, E { [) {) }
39   |          ----- while parsing this match expression
40LL | 
41LL | 
42   | ^ expected one of `.`, `?`, `{`, or an operator here
43
44error: incorrect close delimiter: `)`
45  --> $DIR/issue-62973.rs:6:28
46   |
47LL | fn p() { match s { v, E { [) {) }
48   |                           -^ incorrect close delimiter
49   |                           |
50   |                           un-closed delimiter
51
52error: incorrect close delimiter: `)`
53  --> $DIR/issue-62973.rs:6:31
54   |
55LL | fn p() { match s { v, E { [) {) }
56   |                              -^ incorrect close delimiter
57   |                              |
58   |                              un-closed delimiter
59
60error: aborting due to 6 previous errors
61