]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: unexpected token: `;` |
dfeec247 | 2 | --> $DIR/parse-error-correct.rs:6:15 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | let x = y.; |
b7449926 XL |
5 | | ^ |
6 | ||
7 | error: unexpected token: `(` | |
dfeec247 | 8 | --> $DIR/parse-error-correct.rs:7:15 |
b7449926 | 9 | | |
532ac7d7 | 10 | LL | let x = y.(); |
b7449926 XL |
11 | | ^ |
12 | ||
13 | error[E0618]: expected function, found `{integer}` | |
dfeec247 | 14 | --> $DIR/parse-error-correct.rs:7:13 |
b7449926 XL |
15 | | |
16 | LL | let y = 42; | |
6a06907d | 17 | | - `y` has type `{integer}` |
532ac7d7 XL |
18 | LL | let x = y.; |
19 | LL | let x = y.(); | |
a1dfa0c6 XL |
20 | | ^--- |
21 | | | | |
22 | | call expression requires function | |
b7449926 XL |
23 | |
24 | error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields | |
dfeec247 | 25 | --> $DIR/parse-error-correct.rs:9:15 |
b7449926 | 26 | | |
532ac7d7 | 27 | LL | let x = y.foo; |
b7449926 XL |
28 | | ^^^ |
29 | ||
30 | error: aborting due to 4 previous errors | |
31 | ||
48663c56 | 32 | Some errors have detailed explanations: E0610, E0618. |
b7449926 | 33 | For more information about an error, try `rustc --explain E0610`. |