mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
libcore: Fix equality for pointers... again
This commit is contained in:
+2
-2
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user