]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parse-error-correct.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / parse-error-correct.stderr
1 error: unexpected token: `;`
2   --> $DIR/parse-error-correct.rs:18:15
3    |
4 LL |     let x = y.;  //~ ERROR unexpected token
5    |               ^
6
7 error: unexpected token: `(`
8   --> $DIR/parse-error-correct.rs:19:15
9    |
10 LL |     let x = y.();  //~ ERROR unexpected token
11    |               ^
12
13 error[E0618]: expected function, found `{integer}`
14   --> $DIR/parse-error-correct.rs:19:13
15    |
16 LL |     let y = 42;
17    |         - `{integer}` defined here
18 LL |     let x = y.;  //~ ERROR unexpected token
19 LL |     let x = y.();  //~ ERROR unexpected token
20    |             ^^^^ not a function
21
22 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
23   --> $DIR/parse-error-correct.rs:21:15
24    |
25 LL |     let x = y.foo; //~ ERROR `{integer}` is a primitive type and therefore doesn't have fields [E061
26    |               ^^^
27
28 error: aborting due to 4 previous errors
29
30 Some errors occurred: E0610, E0618.
31 For more information about an error, try `rustc --explain E0610`.