]>
Commit | Line | Data |
---|---|---|
0731742a XL |
1 | error: expected item, found `;` |
2 | --> $DIR/recover-from-semicolon-trailing-item.rs:2:9 | |
3 | | | |
4 | LL | mod M {}; | |
5 | | ^ help: remove this semicolon | |
6 | ||
7 | error: expected item, found `;` | |
8 | --> $DIR/recover-from-semicolon-trailing-item.rs:4:12 | |
9 | | | |
10 | LL | struct S {}; | |
11 | | ^ help: remove this semicolon | |
12 | | | |
13 | = help: braced struct declarations are not followed by a semicolon | |
14 | ||
15 | error: expected item, found `;` | |
16 | --> $DIR/recover-from-semicolon-trailing-item.rs:6:20 | |
17 | | | |
18 | LL | fn foo(a: usize) {}; | |
19 | | ^ help: remove this semicolon | |
20 | ||
21 | error[E0308]: mismatched types | |
22 | --> $DIR/recover-from-semicolon-trailing-item.rs:10:20 | |
23 | | | |
24 | LL | let _: usize = S {}; | |
60c5eb7d XL |
25 | | ----- ^^^^ expected `usize`, found struct `S` |
26 | | | | |
27 | | expected due to this | |
0731742a XL |
28 | |
29 | error[E0308]: mismatched types | |
30 | --> $DIR/recover-from-semicolon-trailing-item.rs:12:20 | |
31 | | | |
32 | LL | let _: usize = X {}; | |
1b1a35ee | 33 | | ----- ^^^^ expected `usize`, found struct `X` |
60c5eb7d XL |
34 | | | |
35 | | expected due to this | |
0731742a XL |
36 | |
37 | error[E0308]: mismatched types | |
38 | --> $DIR/recover-from-semicolon-trailing-item.rs:14:9 | |
39 | | | |
40 | LL | foo(""); | |
60c5eb7d | 41 | | ^^ expected `usize`, found `&str` |
0731742a XL |
42 | |
43 | error: aborting due to 6 previous errors | |
44 | ||
45 | For more information about this error, try `rustc --explain E0308`. |