2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2012-11-07 20:40:34 -06:00
|
|
|
struct S {
|
|
|
|
z: f64
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2012-11-07 20:40:34 -06:00
|
|
|
let x: f32 = 4.0;
|
2014-01-09 04:06:55 -06:00
|
|
|
println!("{}", x);
|
2013-09-26 01:26:09 -05:00
|
|
|
let y: f64 = 64.0;
|
2014-01-09 04:06:55 -06:00
|
|
|
println!("{}", y);
|
2012-11-07 20:40:34 -06:00
|
|
|
let z = S { z: 1.0 };
|
2014-01-09 04:06:55 -06:00
|
|
|
println!("{}", z.z);
|
2012-11-07 20:40:34 -06:00
|
|
|
}
|