diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-11 02:34:14 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-11 02:34:14 +1000 |
| commit | e8782eeb6327eb79b132cc3f71bfaf55310dde00 (patch) | |
| tree | 55be12fd3e32a320f11b3d7cf6125a825aede7c6 /src/test | |
| parent | 2fa83c05035855f4b8f9a8b671d8d7cd69b60f8b (diff) | |
fix tests, remove some warnings
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/trait-to-str.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/run-pass/trait-to-str.rs b/src/test/run-pass/trait-to-str.rs index bc167e5124f..4029bd18338 100644 --- a/src/test/run-pass/trait-to-str.rs +++ b/src/test/run-pass/trait-to-str.rs @@ -14,7 +14,8 @@ extern mod std; -use std::{str, int, vec}; +use std::str::StrVector; +use std::{int, vec}; trait to_str { fn to_str(&self) -> ~str; @@ -26,7 +27,7 @@ impl to_str for int { impl<T:to_str> to_str for ~[T] { fn to_str(&self) -> ~str { - ~"[" + self.map(|e| e.to_str()).connect(", ") + "]" + ~"[" + vec::map(*self, |e| e.to_str()).connect(", ") + "]" } } |
