]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/bad-hex-float-lit.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / bad-hex-float-lit.rs
1 fn main() {
2     let _f: f32 = 0xAAf32;
3     //~^ ERROR mismatched types
4     //~| HELP rewrite this
5
6     let _f: f32 = 0xAB_f32;
7     //~^ ERROR mismatched types
8     //~| HELP rewrite this
9
10     let _f: f64 = 0xFF_f64;
11     //~^ ERROR mismatched types
12     //~| HELP rewrite this
13 }