os-rust/tests/ui/suggestions/recover-invalid-float.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
272 B
Rust
Raw Normal View History

2019-04-21 15:44:23 -07:00
//@ 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
}