1 #![deny(no_mangle_generic_items)]
4 pub fn foo<T>() {} //~ ERROR functions generic over types or consts must be mangled
7 pub extern fn bar<T>() {} //~ ERROR functions generic over types or consts must be mangled
10 pub fn baz(x: &i32) -> &i32 { x }
13 pub fn qux<'a>(x: &'a i32) -> &i32 { x }