]> git.lizzy.rs Git - rust.git/blob - tests/ui/numbers-arithmetic/float-literal-inference.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / numbers-arithmetic / float-literal-inference.rs
1 // run-pass
2 struct S {
3     z: f64
4 }
5
6 pub fn main() {
7     let x: f32 = 4.0;
8     println!("{}", x);
9     let y: f64 = 64.0;
10     println!("{}", y);
11     let z = S { z: 1.0 };
12     println!("{}", z.z);
13 }