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

#![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)
}