]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/bare-static-string.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / bare-static-string.rs
index ceae1392d3b73fc3e1053ca6df40dfa18ada30b5..fefb303fc70feb83cf05346a952b1df3598f8f88 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 pub fn main() {
-    let x: &static/str = "foo";
-    io::println(x);
+    let x: &'static str = "foo";
+    println!("{}", x);
 }
-