]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/recover-invalid-float.fixed
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / ui / suggestions / recover-invalid-float.fixed
1 // run-rustfix
2
3 fn main() {
4     let _: f32 = 0.3;
5     //~^ ERROR float literals must have an integer part
6     let _: f32 = 0.42f32;
7     //~^ ERROR float literals must have an integer part
8     let _: f64 = 0.5f64;
9     //~^ ERROR float literals must have an integer part
10 }