rust/src/test/ui/parse-error-correct.stderr

34 lines
844 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: unexpected token: `;`
2018-12-25 09:56:47 -06:00
--> $DIR/parse-error-correct.rs:8:15
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | let x = y.;
2018-08-08 07:28:26 -05:00
| ^
error: unexpected token: `(`
2018-12-25 09:56:47 -06:00
--> $DIR/parse-error-correct.rs:9:15
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | let x = y.();
2018-08-08 07:28:26 -05:00
| ^
error[E0618]: expected function, found `{integer}`
2018-12-25 09:56:47 -06:00
--> $DIR/parse-error-correct.rs:9:13
2018-08-08 07:28:26 -05:00
|
LL | let y = 42;
| - `{integer}` defined here
2019-03-09 06:03:44 -06:00
LL | let x = y.;
LL | let x = y.();
| ^---
| |
| call expression requires function
2018-08-08 07:28:26 -05:00
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
2018-12-25 09:56:47 -06:00
--> $DIR/parse-error-correct.rs:11:15
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | let x = y.foo;
2018-08-08 07:28:26 -05:00
| ^^^
error: aborting due to 4 previous errors
Some errors occurred: E0610, E0618.
For more information about an error, try `rustc --explain E0610`.