]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-pass/const-rec-and-tup.rs
Imported Upstream version 1.0.0~0alpha
[rustc.git] / src / test / run-pass / const-rec-and-tup.rs
index 31b806bf41a1b29d271d14609cae6feef7bdf0d5..e6680fe3e8fdb66c93d7ff3161ee9c095d0740c1 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-struct Pair { a: float, b: float }
+struct Pair { a: f64, b: f64 }
 
 struct AnotherPair { x: (i64, i64), y: Pair }
 
@@ -21,5 +21,5 @@ static y : AnotherPair = AnotherPair{ x: (0xf0f0f0f0_f0f0f0f0,
 pub fn main() {
     let (p, _) = y.x;
     assert_eq!(p, - 1085102592571150096);
-    println(fmt!("0x%x", p as uint));
+    println!("{:#x}", p);
 }