2020-07-02 00:32:12 -05:00
|
|
|
// run-rustfix
|
|
|
|
|
2015-12-08 10:48:40 -06:00
|
|
|
#![deny(no_mangle_generic_items)]
|
2014-08-01 23:22:02 -05:00
|
|
|
|
|
|
|
#[no_mangle]
|
2019-02-15 16:26:36 -06:00
|
|
|
pub fn foo<T>() {} //~ ERROR functions generic over types or consts must be mangled
|
2014-08-01 23:22:02 -05:00
|
|
|
|
|
|
|
#[no_mangle]
|
2019-02-15 16:26:36 -06:00
|
|
|
pub extern fn bar<T>() {} //~ ERROR functions generic over types or consts must be mangled
|
2017-05-28 09:12:19 -05:00
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
pub fn baz(x: &i32) -> &i32 { x }
|
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
pub fn qux<'a>(x: &'a i32) -> &i32 { x }
|
2015-12-08 10:48:40 -06:00
|
|
|
|
|
|
|
fn main() {}
|