libcore: Fix equality for pointers... again
This commit is contained in:
parent
32b13ce2ce
commit
303e105677
1 changed files with 2 additions and 2 deletions
|
@ -172,8 +172,8 @@ impl<T> *T: Ptr {
|
|||
}
|
||||
|
||||
// Equality for pointers
|
||||
impl<T> *T : Eq {
|
||||
pure fn eq(&&other: *T) -> bool { self == other }
|
||||
impl<T> *const T : Eq {
|
||||
pure fn eq(&&other: *const T) -> bool { self == other }
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue