summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/recover-invalid-float.fixed
blob: 62389ba6120834901e2cc2ef162b3294eecb87fd (plain)
1
2
3
4
5
6
7
8
9
10
// 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
}