fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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