2019-01-20 14:25:53 -08:00
|
|
|
error: float literals must have an integer part
|
2019-04-21 15:44:23 -07:00
|
|
|
--> $DIR/recover-invalid-float.rs:4:18
|
2019-01-20 14:25:53 -08:00
|
|
|
|
|
2019-04-21 15:44:23 -07:00
|
|
|
LL | let _: f32 = .3;
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | let _: f32 = 0.3;
|
|
|
|
| +
|
2019-01-20 14:25:53 -08:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2019-04-21 15:44:23 -07:00
|
|
|
--> $DIR/recover-invalid-float.rs:6:18
|
2019-01-20 14:25:53 -08:00
|
|
|
|
|
2019-04-21 15:44:23 -07:00
|
|
|
LL | let _: f32 = .42f32;
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | let _: f32 = 0.42f32;
|
|
|
|
| +
|
2019-01-20 14:25:53 -08:00
|
|
|
|
|
|
|
error: float literals must have an integer part
|
2019-04-21 15:44:23 -07:00
|
|
|
--> $DIR/recover-invalid-float.rs:8:18
|
2019-01-20 14:25:53 -08:00
|
|
|
|
|
2019-04-21 15:44:23 -07:00
|
|
|
LL | let _: f64 = .5f64;
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
|
|
|
|
LL | let _: f64 = 0.5f64;
|
|
|
|
| +
|
2019-01-20 14:25:53 -08:00
|
|
|
|
2019-04-21 15:44:23 -07:00
|
|
|
error: aborting due to 3 previous errors
|
2019-01-20 14:25:53 -08:00
|
|
|
|