diff options
Diffstat (limited to 'src/test/run-pass/trait-static-method-overwriting.rs')
| -rw-r--r-- | src/test/run-pass/trait-static-method-overwriting.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-pass/trait-static-method-overwriting.rs b/src/test/run-pass/trait-static-method-overwriting.rs index 40f01fb63c1..a8a579422a3 100644 --- a/src/test/run-pass/trait-static-method-overwriting.rs +++ b/src/test/run-pass/trait-static-method-overwriting.rs @@ -12,7 +12,7 @@ mod base { pub trait HasNew<T> { - pure fn new() -> T; + fn new() -> T; } pub struct Foo { @@ -20,7 +20,7 @@ mod base { } impl ::base::HasNew<Foo> for Foo { - pure fn new() -> Foo { + fn new() -> Foo { unsafe { io::println("Foo"); } Foo { dummy: () } } @@ -31,7 +31,7 @@ mod base { } impl ::base::HasNew<Bar> for Bar { - pure fn new() -> Bar { + fn new() -> Bar { unsafe { io::println("Bar"); } Bar { dummy: () } } |
