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