1 warning: attribute should be applied to a free function, impl method or static
2 --> $DIR/extern-no-mangle.rs:24:5
8 | ------------- not a free function, impl method or static
10 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11 note: the lint level is defined here
12 --> $DIR/extern-no-mangle.rs:1:9
14 LL | #![warn(unused_attributes)]
17 warning: `#[no_mangle]` has no effect on a foreign static
18 --> $DIR/extern-no-mangle.rs:11:5
21 | ^^^^^^^^^^^^ help: remove this attribute
23 LL | pub static FOO: u8;
24 | ------------------- foreign static
26 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
27 = note: symbol names in extern blocks are not mangled
29 warning: `#[no_mangle]` has no effect on a foreign function
30 --> $DIR/extern-no-mangle.rs:16:5
33 | ^^^^^^^^^^^^ help: remove this attribute
36 | ------------- foreign function
38 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
39 = note: symbol names in extern blocks are not mangled
41 warning: 3 warnings emitted