]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-62973.stderr
Rollup merge of #62600 - emmericp:libtest-add-show-output, r=gnzlbg
[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 help: surround the struct literal with parentheses
29    |
30 LL | fn p() { match (s { v, E { [) {) }
31 LL | 
32 LL | )
33    |
34
35 error: expected one of `.`, `?`, `{`, or an operator, found `}`
36   --> $DIR/issue-62973.rs:8:1
37    |
38 LL | fn p() { match s { v, E { [) {) }
39    |          ----- while parsing this match expression
40 LL | 
41 LL | 
42    | ^ expected one of `.`, `?`, `{`, or an operator here
43
44 error: incorrect close delimiter: `)`
45   --> $DIR/issue-62973.rs:6:28
46    |
47 LL | fn p() { match s { v, E { [) {) }
48    |                           -^ incorrect close delimiter
49    |                           |
50    |                           un-closed delimiter
51
52 error: incorrect close delimiter: `)`
53   --> $DIR/issue-62973.rs:6:31
54    |
55 LL | fn p() { match s { v, E { [) {) }
56    |                              -^ incorrect close delimiter
57    |                              |
58    |                              un-closed delimiter
59
60 error: aborting due to 6 previous errors
61