@@ -2,132 +2,82 @@ error: expected `;`, found keyword `struct`
22 --> $DIR/recover-missing-semi-before-item.rs:6:16
33 |
44LL | let foo = 3
5- | ^
5+ | ^ help: add `;` here
66LL | struct Foo;
77 | ------ unexpected token
8- |
9- help: add `;` here
10- |
11- LL | let foo = 3;
12- | +
138
149error: expected `;`, found `union`
1510 --> $DIR/recover-missing-semi-before-item.rs:11:16
1611 |
1712LL | let foo = 3
18- | ^
13+ | ^ help: add `;` here
1914LL | union Foo {
2015 | ----- unexpected token
21- |
22- help: add `;` here
23- |
24- LL | let foo = 3;
25- | +
2616
2717error: expected `;`, found keyword `enum`
2818 --> $DIR/recover-missing-semi-before-item.rs:18:16
2919 |
3020LL | let foo = 3
31- | ^
21+ | ^ help: add `;` here
3222LL | enum Foo {
3323 | ---- unexpected token
34- |
35- help: add `;` here
36- |
37- LL | let foo = 3;
38- | +
3924
4025error: expected `;`, found keyword `fn`
4126 --> $DIR/recover-missing-semi-before-item.rs:25:16
4227 |
4328LL | let foo = 3
44- | ^
29+ | ^ help: add `;` here
4530LL | fn foo() {}
4631 | -- unexpected token
47- |
48- help: add `;` here
49- |
50- LL | let foo = 3;
51- | +
5232
5333error: expected `;`, found keyword `extern`
5434 --> $DIR/recover-missing-semi-before-item.rs:30:16
5535 |
5636LL | let foo = 3
57- | ^
37+ | ^ help: add `;` here
5838LL | extern fn foo() {}
5939 | ------ unexpected token
60- |
61- help: add `;` here
62- |
63- LL | let foo = 3;
64- | +
6540
6641error: expected `;`, found keyword `impl`
6742 --> $DIR/recover-missing-semi-before-item.rs:36:16
6843 |
6944LL | let foo = 3
70- | ^
45+ | ^ help: add `;` here
7146LL | impl Foo {}
7247 | ---- unexpected token
73- |
74- help: add `;` here
75- |
76- LL | let foo = 3;
77- | +
7848
7949error: expected `;`, found keyword `pub`
8050 --> $DIR/recover-missing-semi-before-item.rs:41:16
8151 |
8252LL | let foo = 3
83- | ^
53+ | ^ help: add `;` here
8454LL | pub use bar::Bar;
8555 | --- unexpected token
86- |
87- help: add `;` here
88- |
89- LL | let foo = 3;
90- | +
9156
9257error: expected `;`, found keyword `mod`
9358 --> $DIR/recover-missing-semi-before-item.rs:46:16
9459 |
9560LL | let foo = 3
96- | ^
61+ | ^ help: add `;` here
9762LL | mod foo {}
9863 | --- unexpected token
99- |
100- help: add `;` here
101- |
102- LL | let foo = 3;
103- | +
10464
10565error: expected `;`, found keyword `type`
10666 --> $DIR/recover-missing-semi-before-item.rs:51:16
10767 |
10868LL | let foo = 3
109- | ^
69+ | ^ help: add `;` here
11070LL | type Foo = usize;
11171 | ---- unexpected token
112- |
113- help: add `;` here
114- |
115- LL | let foo = 3;
116- | +
11772
11873error: expected `;`, found keyword `fn`
11974 --> $DIR/recover-missing-semi-before-item.rs:59:19
12075 |
12176LL | const X: i32 = 123
122- | ^
77+ | ^ help: add `;` here
12378LL |
12479LL | fn main() {}
12580 | -- unexpected token
126- |
127- help: add `;` here
128- |
129- LL | const X: i32 = 123;
130- | +
13181
13282error: aborting due to 10 previous errors
13383
0 commit comments