rust/src/test/ui/float-literal-inference-restrictions.rs
2018-12-25 21:08:33 -07:00

5 lines
111 B
Rust

fn main() {
let x: f32 = 1; //~ ERROR mismatched types
let y: f32 = 1f64; //~ ERROR mismatched types
}