]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-62973.stderr
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / ui / parser / issues / issue-62973.stderr
1 error: this file contains an unclosed delimiter
2   --> $DIR/issue-62973.rs:8:2
3    |
4 LL | fn p() { match s { v, E { [) {) }
5    |        -         - unclosed delimiter
6    |        |
7    |        unclosed delimiter
8 LL | 
9 LL | 
10    |  ^
11
12 error: this file contains an unclosed delimiter
13   --> $DIR/issue-62973.rs:8:2
14    |
15 LL | fn p() { match s { v, E { [) {) }
16    |        -         - unclosed delimiter
17    |        |
18    |        unclosed delimiter
19 LL | 
20 LL | 
21    |  ^
22
23 error: expected one of `,` or `}`, found `{`
24   --> $DIR/issue-62973.rs:6:8
25    |
26 LL | 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
33 error: struct literals are not allowed here
34   --> $DIR/issue-62973.rs:6:16
35    |
36 LL |   fn p() { match s { v, E { [) {) }
37    |  ________________^
38 LL | |
39 LL | |
40    | |_^
41    |
42 help: surround the struct literal with parentheses
43    |
44 LL ~ fn p() { match (s { v, E { [) {) }
45 LL | 
46 LL ~ )
47    |
48
49 error: expected one of `.`, `?`, `{`, or an operator, found `}`
50   --> $DIR/issue-62973.rs:8:2
51    |
52 LL | fn p() { match s { v, E { [) {) }
53    |          ----- while parsing this match expression
54 LL | 
55 LL | 
56    |  ^ expected one of `.`, `?`, `{`, or an operator
57
58 error: mismatched closing delimiter: `)`
59   --> $DIR/issue-62973.rs:6:27
60    |
61 LL | fn p() { match s { v, E { [) {) }
62    |                           ^^ mismatched closing delimiter
63    |                           |
64    |                           unclosed delimiter
65
66 error: mismatched closing delimiter: `)`
67   --> $DIR/issue-62973.rs:6:30
68    |
69 LL | fn p() { match s { v, E { [) {) }
70    |                              ^^ mismatched closing delimiter
71    |                              |
72    |                              unclosed delimiter
73
74 error: aborting due to 7 previous errors
75