]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-62973.stderr
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / 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    |        |       while parsing this struct
30    |        unclosed delimiter
31    |
32 help: `}` may belong here
33    |
34 LL | fn p() { match s { v, E} { [) {) }
35    |                        +
36 help: try naming a field
37    |
38 LL | fn p() { match s { v, E: E { [) {) }
39    |                       ++
40
41 error: struct literals are not allowed here
42   --> $DIR/issue-62973.rs:6:16
43    |
44 LL |   fn p() { match s { v, E { [) {) }
45    |  ________________^
46 LL | |
47 LL | |
48    | |_^
49    |
50 help: surround the struct literal with parentheses
51    |
52 LL ~ fn p() { match (s { v, E { [) {) }
53 LL | 
54 LL ~ )
55    |
56
57 error: expected one of `.`, `?`, `{`, or an operator, found `}`
58   --> $DIR/issue-62973.rs:8:2
59    |
60 LL | fn p() { match s { v, E { [) {) }
61    |          ----- while parsing this `match` expression
62 LL |
63 LL |
64    |  ^ expected one of `.`, `?`, `{`, or an operator
65
66 error: mismatched closing delimiter: `)`
67   --> $DIR/issue-62973.rs:6:27
68    |
69 LL | fn p() { match s { v, E { [) {) }
70    |                           ^^ mismatched closing delimiter
71    |                           |
72    |                           unclosed delimiter
73
74 error: mismatched closing delimiter: `)`
75   --> $DIR/issue-62973.rs:6:30
76    |
77 LL | fn p() { match s { v, E { [) {) }
78    |                              ^^ mismatched closing delimiter
79    |                              |
80    |                              unclosed delimiter
81
82 error: aborting due to 7 previous errors
83