3 #![deny(no_mangle_generic_items)]
6 pub fn foo<T>() {} //~ ERROR functions generic over types or consts must be mangled
9 pub extern fn bar<T>() {} //~ ERROR functions generic over types or consts must be mangled
12 pub fn baz(x: &i32) -> &i32 { x }
15 pub fn qux<'a>(x: &'a i32) -> &i32 { x }