summaryrefslogtreecommitdiffstats
path: root/tests/ui/statics/auxiliary/static_fn_trait_xc_aux.rs
blob: b8aed2c5f54d9d4a6a2e76f8aba2d98e1960d814 (plain)
1
2
3
4
5
6
7
8
9
10
11
pub mod num {
    pub trait Num2 {
        fn from_int2(n: isize) -> Self;
    }
}

pub mod f64 {
    impl ::num::Num2 for f64 {
        fn from_int2(n: isize) -> f64 { return n as f64;  }
    }
}