|
1 | 1 | error: this file contains an unclosed delimiter |
2 | | - --> $DIR/use-unclosed-brace.rs:26:51 |
| 2 | + --> $DIR/use-unclosed-brace.rs:12:14 |
3 | 3 | | |
4 | 4 | LL | use foo::{bar, baz; |
5 | 5 | | - unclosed delimiter |
6 | 6 | ... |
7 | | -LL | |
8 | | - | ^ |
9 | | - |
10 | | -error: expected identifier, found keyword `use` |
11 | | - --> $DIR/use-unclosed-brace.rs:4:1 |
12 | | - | |
13 | | -LL | use std::fmt::Display; |
14 | | - | ^^^ expected identifier, found keyword |
| 7 | +LL | fn main() {} |
| 8 | + | ^ |
15 | 9 |
|
16 | 10 | error: expected one of `,`, `::`, `as`, or `}`, found `;` |
17 | | - --> $DIR/use-unclosed-brace.rs:1:19 |
| 11 | + --> $DIR/use-unclosed-brace.rs:4:19 |
18 | 12 | | |
19 | 13 | LL | use foo::{bar, baz; |
20 | | - | - ^ expected one of `,`, `::`, `as`, or `}` |
21 | | - | | |
| 14 | + | - ^ |
| 15 | + | | | |
| 16 | + | | expected one of `,`, `::`, `as`, or `}` |
| 17 | + | | help: `}` may belong here |
22 | 18 | | unclosed delimiter |
23 | | - | |
24 | | -help: `}` may belong here |
25 | | - | |
26 | | -LL | use foo::{bar, baz}; |
27 | | - | ^ |
28 | | -help: missing `,` |
29 | | - | |
30 | | -LL | use foo::{bar, baz,; |
31 | | - | ^ |
32 | | - |
33 | | -error: expected one of `,`, `::`, `as`, or `}`, found `std` |
34 | | - --> $DIR/use-unclosed-brace.rs:4:5 |
35 | | - | |
36 | | -LL | use std::fmt::Display; |
37 | | - | -^^^ expected one of `,`, `::`, `as`, or `}` |
38 | | - | | |
39 | | - | help: missing `,` |
40 | | - |
41 | | -error: expected identifier, found keyword `mod` |
42 | | - --> $DIR/use-unclosed-brace.rs:9:1 |
43 | | - | |
44 | | -LL | mod bar { } |
45 | | - | ^^^ expected identifier, found keyword |
46 | | - |
47 | | -error: expected one of `,`, `::`, `as`, or `}`, found `;` |
48 | | - --> $DIR/use-unclosed-brace.rs:4:22 |
49 | | - | |
50 | | -LL | use std::fmt::Display; |
51 | | - | ^ |
52 | | - | | |
53 | | - | expected one of `,`, `::`, `as`, or `}` |
54 | | - | help: missing `,` |
55 | | - |
56 | | -error: expected one of `,`, `::`, `as`, or `}`, found `bar` |
57 | | - --> $DIR/use-unclosed-brace.rs:9:5 |
58 | | - | |
59 | | -LL | mod bar { } |
60 | | - | -^^^ expected one of `,`, `::`, `as`, or `}` |
61 | | - | | |
62 | | - | help: missing `,` |
63 | | - |
64 | | -error: expected one of `,`, `::`, `as`, or `}`, found `{` |
65 | | - --> $DIR/use-unclosed-brace.rs:9:9 |
66 | | - | |
67 | | -LL | mod bar { } |
68 | | - | -^ expected one of `,`, `::`, `as`, or `}` |
69 | | - | | |
70 | | - | help: missing `,` |
71 | | - |
72 | | -error: expected identifier, found keyword `mod` |
73 | | - --> $DIR/use-unclosed-brace.rs:14:1 |
74 | | - | |
75 | | -LL | mod baz { } |
76 | | - | ^^^ expected identifier, found keyword |
77 | | - |
78 | | -error: expected one of `,` or `}`, found keyword `mod` |
79 | | - --> $DIR/use-unclosed-brace.rs:14:1 |
80 | | - | |
81 | | -LL | mod bar { } |
82 | | - | - |
83 | | - | | |
84 | | - | expected one of `,` or `}` |
85 | | - | help: missing `,` |
86 | | -... |
87 | | -LL | mod baz { } |
88 | | - | ^^^ unexpected token |
89 | | - |
90 | | -error: expected one of `,`, `::`, `as`, or `}`, found `baz` |
91 | | - --> $DIR/use-unclosed-brace.rs:14:5 |
92 | | - | |
93 | | -LL | mod baz { } |
94 | | - | -^^^ expected one of `,`, `::`, `as`, or `}` |
95 | | - | | |
96 | | - | help: missing `,` |
97 | | - |
98 | | -error: expected one of `,`, `::`, `as`, or `}`, found `{` |
99 | | - --> $DIR/use-unclosed-brace.rs:14:9 |
100 | | - | |
101 | | -LL | mod baz { } |
102 | | - | -^ expected one of `,`, `::`, `as`, or `}` |
103 | | - | | |
104 | | - | help: missing `,` |
105 | | - |
106 | | -error: expected identifier, found keyword `fn` |
107 | | - --> $DIR/use-unclosed-brace.rs:20:1 |
108 | | - | |
109 | | -LL | fn main() {} |
110 | | - | ^^ expected identifier, found keyword |
111 | | - |
112 | | -error: expected one of `,` or `}`, found keyword `fn` |
113 | | - --> $DIR/use-unclosed-brace.rs:20:1 |
114 | | - | |
115 | | -LL | mod baz { } |
116 | | - | - |
117 | | - | | |
118 | | - | expected one of `,` or `}` |
119 | | - | help: missing `,` |
120 | | -... |
121 | | -LL | fn main() {} |
122 | | - | ^^ unexpected token |
123 | | - |
124 | | -error: expected one of `,`, `::`, `as`, or `}`, found `main` |
125 | | - --> $DIR/use-unclosed-brace.rs:20:4 |
126 | | - | |
127 | | -LL | fn main() {} |
128 | | - | -^^^^ expected one of `,`, `::`, `as`, or `}` |
129 | | - | | |
130 | | - | help: missing `,` |
131 | 19 |
|
132 | | -error: expected one of `,`, `::`, `as`, or `}`, found `(` |
133 | | - --> $DIR/use-unclosed-brace.rs:20:8 |
| 20 | +error: expected item, found `}` |
| 21 | + --> $DIR/use-unclosed-brace.rs:12:14 |
134 | 22 | | |
135 | 23 | LL | fn main() {} |
136 | | - | ^ expected one of `,`, `::`, `as`, or `}` |
| 24 | + | ^ expected item |
137 | 25 |
|
138 | | -error: aborting due to 16 previous errors |
| 26 | +error: aborting due to 3 previous errors |
139 | 27 |
|
0 commit comments