-// ignore-fast
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// A more complex example of numeric extensions
-extern mod extra;
-
-use std::cmp::{Eq, Ord};
+use std::cmp::{PartialEq, PartialOrd};
+use std::num::NumCast;
pub trait TypeExt {}
impl TypeExt for f64 {}
-pub trait NumExt: TypeExt + Eq + Ord + Num + NumCast {}
+pub trait NumExt: TypeExt + PartialEq + PartialOrd + NumCast {}
impl NumExt for u8 {}
impl NumExt for u16 {}