]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/float-literal-inference-restrictions.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / mismatched_types / float-literal-inference-restrictions.rs
1 fn main() {
2     let x: f32 = 1; //~ ERROR mismatched types
3     let y: f32 = 1f64; //~ ERROR mismatched types
4 }