1 // compile-flags: -g --crate-type=rlib
3 pub struct StructWithLifetime<'a>(&'a i32);
4 pub fn mk_struct_with_lt<'a>(x: &'a i32) -> StructWithLifetime<'a> {
8 pub struct RegularStruct(u32);
9 pub fn mk_regular_struct(x: u32) -> RegularStruct {
13 pub fn take_fn(f: fn(i32) -> i32, x: i32) -> i32 {
17 pub fn with_closure(x: i32) -> i32 {
18 let closure = |i| { x + i };
20 closure(1) + closure(2)
23 pub fn generic_fn<T>(x: T) -> (T, u32) {
27 pub fn user_of_generic_fn(x: f32) -> (f32, u32) {