// ignore-tidy-linelength // compile-flags:-Zprint-mono-items=eager #![deny(dead_code)] #![feature(start)] fn take_fn_once(f: F, x: T1, y: T2) { (f)(x, y) } fn function(_: T1, _: T2) {} fn take_fn_pointer(f: fn(T1, T2), x: T1, y: T2) { (f)(x, y) } //~ MONO_ITEM fn start #[start] fn start(_: isize, _: *const *const u8) -> isize { //~ MONO_ITEM fn take_fn_once::}> //~ MONO_ITEM fn function:: //~ MONO_ITEM fn } as std::ops::FnOnce<(u32, &str)>>::call_once - shim(fn(u32, &str) {function::}) take_fn_once(function, 0u32, "abc"); //~ MONO_ITEM fn take_fn_once::}> //~ MONO_ITEM fn function:: //~ MONO_ITEM fn } as std::ops::FnOnce<(char, f64)>>::call_once - shim(fn(char, f64) {function::}) take_fn_once(function, 'c', 0f64); //~ MONO_ITEM fn take_fn_pointer:: //~ MONO_ITEM fn function:: take_fn_pointer(function, 0i32, ()); //~ MONO_ITEM fn take_fn_pointer:: //~ MONO_ITEM fn function:: take_fn_pointer(function, 0f32, 0i64); 0 }