diff options
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ptr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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> *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] |
