]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attempted-access-non-fatal.stderr
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / attempted-access-non-fatal.stderr
1 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
2   --> $DIR/attempted-access-non-fatal.rs:4:15
3    |
4 LL |     let _ = x.foo;
5    |               ^^^
6
7 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
8   --> $DIR/attempted-access-non-fatal.rs:5:15
9    |
10 LL |     let _ = x.bar;
11    |               ^^^
12
13 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
14   --> $DIR/attempted-access-non-fatal.rs:6:15
15    |
16 LL |     let _ = 0.f;
17    |               ^
18    |
19 help: if intended to be a floating point literal, consider adding a `0` after the period and a `f32` suffix
20    |
21 LL |     let _ = 0.0f32;
22    |               ~~~~
23
24 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
25   --> $DIR/attempted-access-non-fatal.rs:7:15
26    |
27 LL |     let _ = 2.l;
28    |               ^
29    |
30 help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
31    |
32 LL |     let _ = 2.0f64;
33    |               ~~~~
34
35 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
36   --> $DIR/attempted-access-non-fatal.rs:8:16
37    |
38 LL |     let _ = 12.F;
39    |                ^
40    |
41 help: if intended to be a floating point literal, consider adding a `0` after the period and a `f32` suffix
42    |
43 LL |     let _ = 12.0f32;
44    |                ~~~~
45
46 error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
47   --> $DIR/attempted-access-non-fatal.rs:9:16
48    |
49 LL |     let _ = 34.L;
50    |                ^
51    |
52 help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
53    |
54 LL |     let _ = 34.0f64;
55    |                ~~~~
56
57 error: aborting due to 6 previous errors
58
59 For more information about this error, try `rustc --explain E0610`.