rust/src/test/run-pass/module-polymorphism.rs

11 lines
393 B
Rust

// This isn't really xfailed; it's used by the
// module-polymorphism.rc test
// xfail-test
fn main() {
// All of these functions are defined by a single module
// source file but instantiated for different types
assert float::template::plus(1.0f, 2.0f) == 3.0f;
assert f64::template::plus(1.0f64, 2.0f64) == 3.0f64;
assert f32::template::plus(1.0f32, 2.0f32) == 3.0f32;
}