2018-08-08 07:28:26 -05:00
|
|
|
error: unexpected token: `;`
|
2020-01-08 12:25:42 -06:00
|
|
|
--> $DIR/parse-error-correct.rs:6: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: `(`
|
2020-01-08 12:25:42 -06:00
|
|
|
--> $DIR/parse-error-correct.rs:7: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}`
|
2020-01-08 12:25:42 -06:00
|
|
|
--> $DIR/parse-error-correct.rs:7:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let y = 42;
|
2021-02-17 08:50:59 -06:00
|
|
|
| - `y` has type `{integer}`
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let x = y.;
|
|
|
|
LL | let x = y.();
|
2018-11-10 22:46:05 -06:00
|
|
|
| ^---
|
|
|
|
| |
|
|
|
|
| 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
|
2020-01-08 12:25:42 -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.foo;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0610, E0618.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0610`.
|