rust/src/test/ui/generic/generic-no-mangle.stderr
2018-12-25 21:08:33 -07:00

25 lines
730 B
Plaintext

error: functions generic over types must be mangled
--> $DIR/generic-no-mangle.rs:4:1
|
LL | #[no_mangle]
| ------------ help: remove this attribute
LL | pub fn foo<T>() {} //~ ERROR functions generic over types must be mangled
| ^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/generic-no-mangle.rs:1:9
|
LL | #![deny(no_mangle_generic_items)]
| ^^^^^^^^^^^^^^^^^^^^^^^
error: functions generic over types must be mangled
--> $DIR/generic-no-mangle.rs:7:1
|
LL | #[no_mangle]
| ------------ help: remove this attribute
LL | pub extern fn bar<T>() {} //~ ERROR functions generic over types must be mangled
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors