diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-22 11:23:21 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-22 12:57:28 -0700 |
| commit | 3eda11a4f79103a7f6d73c38e5e4f0880e26cc3c (patch) | |
| tree | 0a0175a52524bf5812b0185adc52743fa706bbc7 /src/test/run-pass/trait-inheritance-overloading-simple.rs | |
| parent | fbe22afdbe4d1b612ba722551ba1c099e7f3e0b0 (diff) | |
| download | rust-3eda11a4f79103a7f6d73c38e5e4f0880e26cc3c.tar.gz rust-3eda11a4f79103a7f6d73c38e5e4f0880e26cc3c.zip | |
test: Remove `pure` from the test suite
Diffstat (limited to 'src/test/run-pass/trait-inheritance-overloading-simple.rs')
| -rw-r--r-- | src/test/run-pass/trait-inheritance-overloading-simple.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-pass/trait-inheritance-overloading-simple.rs b/src/test/run-pass/trait-inheritance-overloading-simple.rs index ce370854a41..283ed8ae2c1 100644 --- a/src/test/run-pass/trait-inheritance-overloading-simple.rs +++ b/src/test/run-pass/trait-inheritance-overloading-simple.rs @@ -15,8 +15,8 @@ trait MyNum : Eq { } struct MyInt { val: int } impl Eq for MyInt { - pure fn eq(&self, other: &MyInt) -> bool { self.val == other.val } - pure fn ne(&self, other: &MyInt) -> bool { !self.eq(other) } + fn eq(&self, other: &MyInt) -> bool { self.val == other.val } + fn ne(&self, other: &MyInt) -> bool { !self.eq(other) } } impl MyNum for MyInt; @@ -25,7 +25,7 @@ fn f<T:MyNum>(x: T, y: T) -> bool { return x == y; } -pure fn mi(v: int) -> MyInt { MyInt { val: v } } +fn mi(v: int) -> MyInt { MyInt { val: v } } pub fn main() { let (x, y, z) = (mi(3), mi(5), mi(3)); |
