2019-02-15 16:26:36 -06:00
|
|
|
error: functions generic over types or consts must be mangled
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/generic-no-mangle.rs:4:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
2019-02-15 16:26:36 -06:00
|
|
|
LL | pub fn foo<T>() {} //~ ERROR functions generic over types or consts must be mangled
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/generic-no-mangle.rs:1:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(no_mangle_generic_items)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2019-02-15 16:26:36 -06:00
|
|
|
error: functions generic over types or consts must be mangled
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/generic-no-mangle.rs:7:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
2019-02-15 16:26:36 -06:00
|
|
|
LL | pub extern fn bar<T>() {} //~ ERROR functions generic over types or consts must be mangled
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|