about summary refs log tree commit diff
path: root/src/test/compile-fail/drop-on-non-struct.rs
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-01-09 21:06:55 +1100
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-01-11 10:46:00 +1100
commit4fc0452acef1355ba566a30c5bd04ccd3b9acef2 (patch)
treea11738f6d30837655498a8b7d2197bf01452a8f3 /src/test/compile-fail/drop-on-non-struct.rs
parentff7ecca20e116b8365d8095fa9618dc11e54cfbe (diff)
downloadrust-4fc0452acef1355ba566a30c5bd04ccd3b9acef2.tar.gz
rust-4fc0452acef1355ba566a30c5bd04ccd3b9acef2.zip
Remove re-exports of std::io::stdio::{print, println} in the prelude.
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
Diffstat (limited to 'src/test/compile-fail/drop-on-non-struct.rs')
-rw-r--r--src/test/compile-fail/drop-on-non-struct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/drop-on-non-struct.rs b/src/test/compile-fail/drop-on-non-struct.rs
index 93aeb48e302..ff901f986e6 100644
--- a/src/test/compile-fail/drop-on-non-struct.rs
+++ b/src/test/compile-fail/drop-on-non-struct.rs
@@ -15,7 +15,7 @@ type Foo = @[u8];
 impl Drop for Foo {   //~ ERROR the Drop trait may only be implemented
 //~^ ERROR cannot provide an extension implementation
     fn drop(&mut self) {
-        println("kaboom");
+        println!("kaboom");
     }
 }