blob: fd139b64816d48a3ec609b24da0ddcfe8ea6b6f9 (
plain)
1
2
3
4
5
6
7
|
enum thing = uint;
impl thing : cmp::Ord { //~ ERROR missing method `gt`
pure fn lt(&self, other: &thing) -> bool { **self < **other }
pure fn le(&self, other: &thing) -> bool { **self < **other }
pure fn ge(&self, other: &thing) -> bool { **self < **other }
}
fn main() {}
|