librustc: Stop parsing impl Type : Trait
and fix several declarations that slipped through. r=tjc
This commit is contained in:
parent
566bcf2225
commit
bb833ca0f0
82 changed files with 327 additions and 424 deletions
|
@ -13,7 +13,7 @@ use num::NumCast::from;
|
|||
|
||||
pub trait NumExt: Eq Ord NumCast {}
|
||||
|
||||
pub impl f32: NumExt {}
|
||||
pub impl NumExt for f32 {}
|
||||
|
||||
fn num_eq_one<T:NumExt>(n: T) { io::println(fmt!("%?", n == from(1))) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue