rust/tests/ui/inference/untyped-primitives.rs

10 lines
228 B
Rust

//@ check-pass
// issue: rust-lang/rust#123824
// This test is a sanity check and does not enforce any stable API, so may be
// removed at a future point.
fn main() {
let x = f32::from(3.14);
let y = f64::from(3.14);
}