]> git.proxmox.com Git - rustc.git/blame - src/test/ui/numbers-arithmetic/float-literal-inference.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / numbers-arithmetic / float-literal-inference.rs
CommitLineData
b7449926 1// run-pass
223e47cc
LB
2struct S {
3 z: f64
4}
5
6pub fn main() {
7 let x: f32 = 4.0;
1a4d82fc
JJ
8 println!("{}", x);
9 let y: f64 = 64.0;
10 println!("{}", y);
223e47cc 11 let z = S { z: 1.0 };
1a4d82fc 12 println!("{}", z.z);
223e47cc 13}