rust/src/test/ui/suggestions/recover-invalid-float.fixed
2019-04-29 14:38:26 -07:00

11 lines
271 B
Rust

// run-rustfix
fn main() {
let _: f32 = 0.3;
//~^ ERROR float literals must have an integer part
let _: f32 = 0.42f32;
//~^ ERROR float literals must have an integer part
let _: f64 = 0.5f64;
//~^ ERROR float literals must have an integer part
}