summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-missing-semi-before-item.stderr
blob: 61c43f2f189989a2bf9a3ca99d32832da7fb0916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
error: expected `;`, found keyword `struct`
  --> $DIR/recover-missing-semi-before-item.rs:6:16
   |
LL |     let foo = 3
   |                ^ help: add `;` here
LL |     struct Foo;
   |     ------ unexpected token

error: expected `;`, found `union`
  --> $DIR/recover-missing-semi-before-item.rs:11:16
   |
LL |     let foo = 3
   |                ^ help: add `;` here
LL |     union Foo {
   |     ----- unexpected token

error: expected `;`, found keyword `enum`
  --> $DIR/recover-missing-semi-before-item.rs:18:16
   |
LL |     let foo = 3
   |                ^ help: add `;` here
LL |     enum Foo {
   |     ---- unexpected token

error: expected `;`, found keyword `fn`
  --> $DIR/recover-missing-semi-before-item.rs:25:16
   |
LL |     let foo = 3
   |                ^ help: add `;` here
LL |     fn foo() {}
   |     -- unexpected token

error: expected `;`, found keyword `extern`
  --> $DIR/recover-missing-semi-before-item.rs:30:16
   |
LL |     let foo = 3
   |                ^ help: add `;` here
LL |     extern fn foo() {}
   |     ------ unexpected token

error: expected `;`, found keyword `impl`
  --> $DIR/recover-missing-semi-before-item.rs:36:16
   |
LL |     let foo = 3
   |                ^ help: add `;` here
LL |     impl Foo {}
   |     ---- unexpected token

error: expected `;`, found keyword `pub`
  --> $DIR/recover-missing-semi-before-item.rs:41:16
   |
LL |     let foo = 3
   |                ^ help: add `;` here
LL |     pub use bar::Bar;
   |     --- unexpected token

error: expected `;`, found keyword `mod`
  --> $DIR/recover-missing-semi-before-item.rs:46:16
   |
LL |     let foo = 3
   |                ^ help: add `;` here
LL |     mod foo {}
   |     --- unexpected token

error: expected `;`, found keyword `type`
  --> $DIR/recover-missing-semi-before-item.rs:51:16
   |
LL |     let foo = 3
   |                ^ help: add `;` here
LL |     type Foo = usize;
   |     ---- unexpected token

error: expected `;`, found keyword `fn`
  --> $DIR/recover-missing-semi-before-item.rs:59:19
   |
LL | const X: i32 = 123
   |                   ^ help: add `;` here
LL |
LL | fn main() {}
   | -- unexpected token

error: aborting due to 10 previous errors