|
| 1 | +error: expected `;`, found keyword `struct` |
| 2 | + --> $DIR/recover-missing-semi-before-item.rs:6:16 |
| 3 | + | |
| 4 | +LL | let foo = 3 |
| 5 | + | ^ help: add `;` here |
| 6 | +LL | struct Foo; |
| 7 | + | ------ unexpected token |
| 8 | + |
| 9 | +error: expected `;`, found `union` |
| 10 | + --> $DIR/recover-missing-semi-before-item.rs:11:16 |
| 11 | + | |
| 12 | +LL | let foo = 3 |
| 13 | + | ^ help: add `;` here |
| 14 | +LL | union Foo { |
| 15 | + | ----- unexpected token |
| 16 | + |
| 17 | +error: expected `;`, found keyword `enum` |
| 18 | + --> $DIR/recover-missing-semi-before-item.rs:18:16 |
| 19 | + | |
| 20 | +LL | let foo = 3 |
| 21 | + | ^ help: add `;` here |
| 22 | +LL | enum Foo { |
| 23 | + | ---- unexpected token |
| 24 | + |
| 25 | +error: expected `;`, found keyword `fn` |
| 26 | + --> $DIR/recover-missing-semi-before-item.rs:25:16 |
| 27 | + | |
| 28 | +LL | let foo = 3 |
| 29 | + | ^ help: add `;` here |
| 30 | +LL | fn foo() {} |
| 31 | + | -- unexpected token |
| 32 | + |
| 33 | +error: expected `;`, found keyword `extern` |
| 34 | + --> $DIR/recover-missing-semi-before-item.rs:30:16 |
| 35 | + | |
| 36 | +LL | let foo = 3 |
| 37 | + | ^ help: add `;` here |
| 38 | +LL | extern fn foo() {} |
| 39 | + | ------ unexpected token |
| 40 | + |
| 41 | +error: expected `;`, found keyword `impl` |
| 42 | + --> $DIR/recover-missing-semi-before-item.rs:36:16 |
| 43 | + | |
| 44 | +LL | let foo = 3 |
| 45 | + | ^ help: add `;` here |
| 46 | +LL | impl Foo {} |
| 47 | + | ---- unexpected token |
| 48 | + |
| 49 | +error: expected `;`, found keyword `pub` |
| 50 | + --> $DIR/recover-missing-semi-before-item.rs:41:16 |
| 51 | + | |
| 52 | +LL | let foo = 3 |
| 53 | + | ^ help: add `;` here |
| 54 | +LL | pub use bar::Bar; |
| 55 | + | --- unexpected token |
| 56 | + |
| 57 | +error: expected `;`, found keyword `mod` |
| 58 | + --> $DIR/recover-missing-semi-before-item.rs:46:16 |
| 59 | + | |
| 60 | +LL | let foo = 3 |
| 61 | + | ^ help: add `;` here |
| 62 | +LL | mod foo {} |
| 63 | + | --- unexpected token |
| 64 | + |
| 65 | +error: expected `;`, found keyword `type` |
| 66 | + --> $DIR/recover-missing-semi-before-item.rs:51:16 |
| 67 | + | |
| 68 | +LL | let foo = 3 |
| 69 | + | ^ help: add `;` here |
| 70 | +LL | type Foo = usize; |
| 71 | + | ---- unexpected token |
| 72 | + |
| 73 | +error: expected `;`, found keyword `fn` |
| 74 | + --> $DIR/recover-missing-semi-before-item.rs:59:19 |
| 75 | + | |
| 76 | +LL | const X: i32 = 123 |
| 77 | + | ^ help: add `;` here |
| 78 | +LL | |
| 79 | +LL | fn main() {} |
| 80 | + | -- unexpected token |
| 81 | + |
| 82 | +error: aborting due to 10 previous errors |
| 83 | + |
0 commit comments