rust/tests/ui/statics/auxiliary/static_fn_inline_xc_aux.rs
2023-01-11 09:32:08 +00:00

13 lines
215 B
Rust

pub mod num {
pub trait Num2 {
fn from_int2(n: isize) -> Self;
}
}
pub mod f64 {
impl ::num::Num2 for f64 {
#[inline]
fn from_int2(n: isize) -> f64 { return n as f64; }
}
}