]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/coherence-impl-in-fn.rs
Merge pull request #3526 from Dretch/viewmethod
[rust.git] / src / test / run-pass / coherence-impl-in-fn.rs
1 fn main() {
2     enum x { foo }
3     impl x : core::cmp::Eq {
4         pure fn eq(other: &x) -> bool { self as int == (*other) as int }
5         pure fn ne(other: &x) -> bool { !self.eq(other) }
6     }
7 }