2012-09-06 17:44:42 -07:00
|
|
|
enum thing = uint;
|
|
|
|
impl thing : cmp::Ord { //~ ERROR missing method `gt`
|
2012-09-20 14:00:33 -07:00
|
|
|
pure fn lt(other: &thing) -> bool { *self < **other }
|
|
|
|
pure fn le(other: &thing) -> bool { *self < **other }
|
|
|
|
pure fn ge(other: &thing) -> bool { *self < **other }
|
2012-09-06 17:44:42 -07:00
|
|
|
}
|
|
|
|
fn main() {}
|