]> 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 b80cdf9fbbd9ccb216a642cd52810f58b175968b..b7c2c8d4953cbfc3138126651d59e8a727badc00 100644 (file)
@@ -14,9 +14,9 @@ struct S {
 
 pub fn main() {
     let x: f32 = 4.0;
-    println(x.to_str());
+    println!("{}", x);
     let y: f64 = 64.0;
-    println(y.to_str());
+    println!("{}", y);
     let z = S { z: 1.0 };
-    println(z.z.to_str());
+    println!("{}", z.z);
 }