about summary refs log tree commit diff
path: root/src/test/run-pass/new-impl-syntax.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/new-impl-syntax.rs')
-rw-r--r--src/test/run-pass/new-impl-syntax.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/new-impl-syntax.rs b/src/test/run-pass/new-impl-syntax.rs
index aad7ded42d3..12b41fc9148 100644
--- a/src/test/run-pass/new-impl-syntax.rs
+++ b/src/test/run-pass/new-impl-syntax.rs
@@ -4,7 +4,7 @@ struct Thingy {
 }
 
 impl ToStr for Thingy {
-    pure fn to_str(&self) -> ~str {
+    fn to_str(&self) -> ~str {
         fmt!("{ x: %d, y: %d }", self.x, self.y)
     }
 }
@@ -14,7 +14,7 @@ struct PolymorphicThingy<T> {
 }
 
 impl<T:ToStr> ToStr for PolymorphicThingy<T> {
-    pure fn to_str(&self) -> ~str {
+    fn to_str(&self) -> ~str {
         self.x.to_str()
     }
 }