]> git.lizzy.rs Git - rust.git/blob - src/test/codegen-units/partitioning/auxiliary/shared_generics_aux.rs
9050e8f1671d9c790321dc72ee35a993db80f438
[rust.git] / src / test / codegen-units / partitioning / auxiliary / shared_generics_aux.rs
1 // compile-flags:-Zshare-generics=yes
2 // no-prefer-dynamic
3
4 #![crate_type="rlib"]
5
6 pub fn generic_fn<T>(x: T, y: T) -> (T, T) {
7     (x, y)
8 }
9
10 pub fn use_generic_fn_f32() -> (f32, f32) {
11     generic_fn(0.0f32, 1.0f32)
12 }