rust/src/test/compile-fail/float-literal-inference-restrictions.rs

6 lines
110 B
Rust
Raw Normal View History

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