libcore: Fix equality for pointers... again

This commit is contained in:
Patrick Walton 2012-08-27 17:42:37 -07:00
parent 32b13ce2ce
commit 303e105677

View file

@ -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]