rust/src/test/auxiliary/static_fn_trait_xc_aux.rs

12 lines
211 B
Rust
Raw Normal View History

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