rust/src/test/auxiliary/static_fn_trait_xc_aux.rs
2013-03-22 12:57:28 -07:00

12 lines
201 B
Rust

pub mod num {
pub trait Num2 {
fn from_int2(n: int) -> Self;
}
}
pub mod float {
impl ::num::Num2 for float {
fn from_int2(n: int) -> float { return n as float; }
}
}