]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/float-literal-inference.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / float-literal-inference.rs
index 2b59d7bfceeb2c6a6bcd41a102e1d1ed94596c5d..b7c2c8d4953cbfc3138126651d59e8a727badc00 100644 (file)
@@ -14,10 +14,9 @@ struct S {
 
 pub fn main() {
     let x: f32 = 4.0;
-    io::println(x.to_str());
-    let y: float = 64.0;
-    io::println(y.to_str());
+    println!("{}", x);
+    let y: f64 = 64.0;
+    println!("{}", y);
     let z = S { z: 1.0 };
-    io::println(z.z.to_str());
+    println!("{}", z.z);
 }
-