diff options
| author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-01-09 21:06:55 +1100 |
|---|---|---|
| committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-01-11 10:46:00 +1100 |
| commit | 4fc0452acef1355ba566a30c5bd04ccd3b9acef2 (patch) | |
| tree | a11738f6d30837655498a8b7d2197bf01452a8f3 /src/test/run-pass/trait-inheritance-self.rs | |
| parent | ff7ecca20e116b8365d8095fa9618dc11e54cfbe (diff) | |
| download | rust-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/run-pass/trait-inheritance-self.rs')
| -rw-r--r-- | src/test/run-pass/trait-inheritance-self.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/trait-inheritance-self.rs b/src/test/run-pass/trait-inheritance-self.rs index 75b71c673a9..c1683082ae7 100644 --- a/src/test/run-pass/trait-inheritance-self.rs +++ b/src/test/run-pass/trait-inheritance-self.rs @@ -12,7 +12,7 @@ struct S { impl Foo<S> for S { fn f(&self, x: &S) { - println(x.x.to_str()); + println!("{}", x.x); } } |
