rustc: De-mode all overloaded operators
This commit is contained in:
parent
6b670c306b
commit
9117dcb968
100 changed files with 3969 additions and 249 deletions
|
@ -10,11 +10,12 @@ fn test_rec() {
|
|||
}
|
||||
|
||||
enum mood { happy, sad, }
|
||||
|
||||
impl mood : cmp::Eq {
|
||||
pure fn eq(&&other: mood) -> bool {
|
||||
(self as uint) == (other as uint)
|
||||
pure fn eq(other: &mood) -> bool {
|
||||
(self as uint) == ((*other) as uint)
|
||||
}
|
||||
pure fn ne(&&other: mood) -> bool { !self.eq(other) }
|
||||
pure fn ne(other: &mood) -> bool { !self.eq(other) }
|
||||
}
|
||||
|
||||
fn test_tag() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue