1 error: expected item, found `;`
2 --> $DIR/recover-from-semicolon-trailing-item.rs:2:9
5 | ^ help: remove this semicolon
7 error: expected item, found `;`
8 --> $DIR/recover-from-semicolon-trailing-item.rs:4:12
11 | ^ help: remove this semicolon
13 = help: braced struct declarations are not followed by a semicolon
15 error: expected item, found `;`
16 --> $DIR/recover-from-semicolon-trailing-item.rs:6:20
18 LL | fn foo(a: usize) {};
19 | ^ help: remove this semicolon
21 error[E0308]: mismatched types
22 --> $DIR/recover-from-semicolon-trailing-item.rs:10:20
24 LL | let _: usize = S {};
25 | ----- ^^^^ expected `usize`, found struct `S`
27 | expected due to this
29 error[E0308]: mismatched types
30 --> $DIR/recover-from-semicolon-trailing-item.rs:12:20
32 LL | let _: usize = X {};
33 | ----- ^^^^ expected `usize`, found struct `X`
35 | expected due to this
37 error[E0308]: mismatched types
38 --> $DIR/recover-from-semicolon-trailing-item.rs:14:9
41 | --- ^^ expected `usize`, found `&str`
43 | arguments to this function are incorrect
45 note: function defined here
46 --> $DIR/recover-from-semicolon-trailing-item.rs:6:4
48 LL | fn foo(a: usize) {};
51 error: aborting due to 6 previous errors
53 For more information about this error, try `rustc --explain E0308`.