We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 348d07f commit 6e9f997Copy full SHA for 6e9f997
src/test/compile-fail/issue-3344.rs
@@ -1,7 +1,7 @@
1
enum thing = uint;
2
impl thing : cmp::Ord { //~ ERROR missing method `gt`
3
- pure fn lt(other: &thing) -> bool { *self < *other }
4
- pure fn le(other: &thing) -> bool { *self < *other }
5
- pure fn ge(other: &thing) -> bool { *self < *other }
+ pure fn lt(other: &thing) -> bool { *self < **other }
+ pure fn le(other: &thing) -> bool { *self < **other }
+ pure fn ge(other: &thing) -> bool { *self < **other }
6
}
7
fn main() {}
0 commit comments