summary refs log tree commit diff
path: root/src/test/codegen-units/partitioning/auxiliary/shared_generics_aux.rs
blob: d50a7910fe0b32e84ae3d0314d48eeb45b1cfeae (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-flags:-Zshare-generics=yes

#![crate_type="rlib"]

pub fn generic_fn<T>(x: T, y: T) -> (T, T) {
    (x, y)
}

pub fn use_generic_fn_f32() -> (f32, f32) {
    generic_fn(0.0f32, 1.0f32)
}