]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/coherence-impl-in-fn.rs
rustc: Make entire crates privileged scopes for the purposes of coherence
[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     }
6 }