]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/float-literal-inference.rs
Auto merge of #101893 - oli-obk:lift_derive, r=lcnr
[rust.git] / src / test / 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 }