2018-08-08 12:28:26 +00:00
|
|
|
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/attempted-access-non-fatal.rs:4:15
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _ = x.foo;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/attempted-access-non-fatal.rs:5:15
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _ = x.bar;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^
|
|
|
|
|
2022-08-16 02:50:04 +00:00
|
|
|
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
|
|
|
|
--> $DIR/attempted-access-non-fatal.rs:6:15
|
|
|
|
|
|
|
|
|
LL | let _ = 0.f;
|
|
|
|
| ^
|
|
|
|
|
|
2022-08-16 11:12:36 +00:00
|
|
|
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f32` suffix
|
2022-08-16 02:50:04 +00:00
|
|
|
|
|
|
|
|
LL | let _ = 0.0f32;
|
|
|
|
| ~~~~
|
|
|
|
|
|
|
|
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
|
|
|
|
--> $DIR/attempted-access-non-fatal.rs:7:15
|
|
|
|
|
|
|
|
|
LL | let _ = 2.l;
|
|
|
|
| ^
|
|
|
|
|
|
2022-08-16 11:12:36 +00:00
|
|
|
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
|
2022-08-16 02:50:04 +00:00
|
|
|
|
|
2022-08-16 11:12:36 +00:00
|
|
|
LL | let _ = 2.0f64;
|
2022-08-16 02:50:04 +00:00
|
|
|
| ~~~~
|
|
|
|
|
|
|
|
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
|
|
|
|
--> $DIR/attempted-access-non-fatal.rs:8:16
|
|
|
|
|
|
|
|
|
LL | let _ = 12.F;
|
|
|
|
| ^
|
|
|
|
|
|
2022-08-16 11:12:36 +00:00
|
|
|
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f32` suffix
|
2022-08-16 02:50:04 +00:00
|
|
|
|
|
|
|
|
LL | let _ = 12.0f32;
|
|
|
|
| ~~~~
|
|
|
|
|
|
|
|
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
|
|
|
|
--> $DIR/attempted-access-non-fatal.rs:9:16
|
|
|
|
|
|
|
|
|
LL | let _ = 34.L;
|
|
|
|
| ^
|
|
|
|
|
|
2022-08-16 11:12:36 +00:00
|
|
|
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
|
2022-08-16 02:50:04 +00:00
|
|
|
|
|
2022-08-16 11:12:36 +00:00
|
|
|
LL | let _ = 34.0f64;
|
2022-08-16 02:50:04 +00:00
|
|
|
| ~~~~
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0610`.
|