parse-error-correct.stderr 861 字节
Newer Older
1
error: unexpected token: `;`
2
  --> $DIR/parse-error-correct.rs:6:15
3
   |
V
Vadim Petrochenkov 已提交
4
LL |     let x = y.;
5 6 7
   |               ^

error: unexpected token: `(`
8
  --> $DIR/parse-error-correct.rs:7:15
9
   |
V
Vadim Petrochenkov 已提交
10
LL |     let x = y.();
11 12 13
   |               ^

error[E0618]: expected function, found `{integer}`
14
  --> $DIR/parse-error-correct.rs:7:13
15 16 17
   |
LL |     let y = 42;
   |         - `{integer}` defined here
V
Vadim Petrochenkov 已提交
18 19
LL |     let x = y.;
LL |     let x = y.();
20 21 22
   |             ^---
   |             |
   |             call expression requires function
23 24

error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
25
  --> $DIR/parse-error-correct.rs:9:15
26
   |
V
Vadim Petrochenkov 已提交
27
LL |     let x = y.foo;
28 29 30 31
   |               ^^^

error: aborting due to 4 previous errors

32
Some errors have detailed explanations: E0610, E0618.
33
For more information about an error, try `rustc --explain E0610`.