summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/recover-invalid-float.rs
blob: a5a7efe5e76e8e9d3ddfd776f2dd2e20f58d0d5d (plain)
1
2
3
4
5
6
7
8
9
10
// run-rustfix

fn main() {
    let _: f32 = .3;
    //~^ ERROR float literals must have an integer part
    let _: f32 = .42f32;
    //~^ ERROR float literals must have an integer part
    let _: f64 = .5f64;
    //~^ ERROR float literals must have an integer part
}