c6b51547c1
But note that default methods still don't work cross-crate (see #2794) -- this just makes it so that when a method is missing in a cross-crate impl, the right error message gets printed. Closes #3344
8 lines
262 B
Rust
8 lines
262 B
Rust
enum thing = uint;
|
|
impl thing : cmp::Ord { //~ ERROR missing method `gt`
|
|
pure fn lt(&&other: thing) -> bool { *self < *other }
|
|
pure fn le(&&other: thing) -> bool { *self < *other }
|
|
pure fn ge(&&other: thing) -> bool { *self < *other }
|
|
}
|
|
fn main() {}
|