@@ -2,132 +2,82 @@ error: expected `;`, found keyword `struct`
2
2
--> $DIR/recover-missing-semi-before-item.rs:6:16
3
3
|
4
4
LL | let foo = 3
5
- | ^
5
+ | ^ help: add `;` here
6
6
LL | struct Foo;
7
7
| ------ unexpected token
8
- |
9
- help: add `;` here
10
- |
11
- LL | let foo = 3;
12
- | +
13
8
14
9
error: expected `;`, found `union`
15
10
--> $DIR/recover-missing-semi-before-item.rs:11:16
16
11
|
17
12
LL | let foo = 3
18
- | ^
13
+ | ^ help: add `;` here
19
14
LL | union Foo {
20
15
| ----- unexpected token
21
- |
22
- help: add `;` here
23
- |
24
- LL | let foo = 3;
25
- | +
26
16
27
17
error: expected `;`, found keyword `enum`
28
18
--> $DIR/recover-missing-semi-before-item.rs:18:16
29
19
|
30
20
LL | let foo = 3
31
- | ^
21
+ | ^ help: add `;` here
32
22
LL | enum Foo {
33
23
| ---- unexpected token
34
- |
35
- help: add `;` here
36
- |
37
- LL | let foo = 3;
38
- | +
39
24
40
25
error: expected `;`, found keyword `fn`
41
26
--> $DIR/recover-missing-semi-before-item.rs:25:16
42
27
|
43
28
LL | let foo = 3
44
- | ^
29
+ | ^ help: add `;` here
45
30
LL | fn foo() {}
46
31
| -- unexpected token
47
- |
48
- help: add `;` here
49
- |
50
- LL | let foo = 3;
51
- | +
52
32
53
33
error: expected `;`, found keyword `extern`
54
34
--> $DIR/recover-missing-semi-before-item.rs:30:16
55
35
|
56
36
LL | let foo = 3
57
- | ^
37
+ | ^ help: add `;` here
58
38
LL | extern fn foo() {}
59
39
| ------ unexpected token
60
- |
61
- help: add `;` here
62
- |
63
- LL | let foo = 3;
64
- | +
65
40
66
41
error: expected `;`, found keyword `impl`
67
42
--> $DIR/recover-missing-semi-before-item.rs:36:16
68
43
|
69
44
LL | let foo = 3
70
- | ^
45
+ | ^ help: add `;` here
71
46
LL | impl Foo {}
72
47
| ---- unexpected token
73
- |
74
- help: add `;` here
75
- |
76
- LL | let foo = 3;
77
- | +
78
48
79
49
error: expected `;`, found keyword `pub`
80
50
--> $DIR/recover-missing-semi-before-item.rs:41:16
81
51
|
82
52
LL | let foo = 3
83
- | ^
53
+ | ^ help: add `;` here
84
54
LL | pub use bar::Bar;
85
55
| --- unexpected token
86
- |
87
- help: add `;` here
88
- |
89
- LL | let foo = 3;
90
- | +
91
56
92
57
error: expected `;`, found keyword `mod`
93
58
--> $DIR/recover-missing-semi-before-item.rs:46:16
94
59
|
95
60
LL | let foo = 3
96
- | ^
61
+ | ^ help: add `;` here
97
62
LL | mod foo {}
98
63
| --- unexpected token
99
- |
100
- help: add `;` here
101
- |
102
- LL | let foo = 3;
103
- | +
104
64
105
65
error: expected `;`, found keyword `type`
106
66
--> $DIR/recover-missing-semi-before-item.rs:51:16
107
67
|
108
68
LL | let foo = 3
109
- | ^
69
+ | ^ help: add `;` here
110
70
LL | type Foo = usize;
111
71
| ---- unexpected token
112
- |
113
- help: add `;` here
114
- |
115
- LL | let foo = 3;
116
- | +
117
72
118
73
error: expected `;`, found keyword `fn`
119
74
--> $DIR/recover-missing-semi-before-item.rs:59:19
120
75
|
121
76
LL | const X: i32 = 123
122
- | ^
77
+ | ^ help: add `;` here
123
78
LL |
124
79
LL | fn main() {}
125
80
| -- unexpected token
126
- |
127
- help: add `;` here
128
- |
129
- LL | const X: i32 = 123;
130
- | +
131
81
132
82
error: aborting due to 10 previous errors
133
83
0 commit comments