fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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