about summary refs log tree commit diff
path: root/src/libcore/nil.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/nil.rs')
-rw-r--r--src/libcore/nil.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/nil.rs b/src/libcore/nil.rs
index 8f03a1b6e34..62ed1d24d79 100644
--- a/src/libcore/nil.rs
+++ b/src/libcore/nil.rs
@@ -17,7 +17,7 @@ Functions for the unit type.
 use cmp::{Eq, Ord};
 
 #[cfg(notest)]
-impl () : Eq {
+impl Eq for () {
     #[inline(always)]
     pure fn eq(&self, _other: &()) -> bool { true }
     #[inline(always)]
@@ -25,7 +25,7 @@ impl () : Eq {
 }
 
 #[cfg(notest)]
-impl () : Ord {
+impl Ord for () {
     #[inline(always)]
     pure fn lt(&self, _other: &()) -> bool { false }
     #[inline(always)]