]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-4333.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / issue-4333.rs
index 159ba4bb2559e1f712c176ab1444d1cc673dae70..fd67b767104d502ed7a27a44f7e91f5360cc91da 100644 (file)
@@ -8,7 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn main() {
-    let stdout = &io::stdout() as &io::WriterUtil;
-    stdout.write_line("Hello!");
+use std::io;
+
+pub fn main() {
+    let stdout = &mut io::stdout() as &mut io::Writer;
+    stdout.write(b"Hello!");
 }