diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 32a1e5fae4a..5e3b49da483 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -172,8 +172,8 @@ impl *T: Ptr { } // Equality for pointers -impl *T : Eq { - pure fn eq(&&other: *T) -> bool { self == other } +impl *const T : Eq { + pure fn eq(&&other: *const T) -> bool { self == other } } #[test]