]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/generic/generic-no-mangle.rs
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 }