rust/src/test/ui/generic/generic-no-mangle.stderr

25 lines
770 B
Plaintext
Raw Normal View History

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
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)]
| ^^^^^^^^^^^^^^^^^^^^^^^
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
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