summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/bad-hex-float-lit.rs
blob: cd6fdbde96c0c2d5519485a7d1dba7f7fc35457f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    let _f: f32 = 0xAAf32;
    //~^ ERROR mismatched types
    //~| HELP rewrite this

    let _f: f32 = 0xAB_f32;
    //~^ ERROR mismatched types
    //~| HELP rewrite this

    let _f: f64 = 0xFF_f64;
    //~^ ERROR mismatched types
    //~| HELP rewrite this
}