]> 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 6ae66fd442c7e81fef614c49afab1141249ddbb6..b7c2c8d4953cbfc3138126651d59e8a727badc00 100644 (file)
@@ -12,12 +12,11 @@ struct S {
     z: f64
 }
 
-fn main() {
+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);
 }
-