librustc: Forbid pub
or priv
before trait implementations
This commit is contained in:
parent
573a31dfa7
commit
07c3f5c0de
67 changed files with 304 additions and 288 deletions
|
@ -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))) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue