1
Fork 0

librustc: Forbid pub or priv before trait implementations

This commit is contained in:
Patrick Walton 2013-02-26 17:12:00 -08:00
parent 573a31dfa7
commit 07c3f5c0de
67 changed files with 304 additions and 288 deletions

View file

@ -13,7 +13,7 @@ use num::NumCast::from;
pub trait NumExt: Eq Ord NumCast {}
pub impl NumExt for f32 {}
impl NumExt for f32 {}
fn num_eq_one<T:NumExt>(n: T) { io::println(fmt!("%?", n == from(1))) }