1 error: malformed `link_name` attribute input
2 --> $DIR/issue-47725.rs:17:1
5 | ^^^^^^^^^^^^ help: must be of the form: `#[link_name = "name"]`
7 warning: attribute should be applied to a foreign function or static
8 --> $DIR/issue-47725.rs:3:1
10 LL | #[link_name = "foo"]
11 | ^^^^^^^^^^^^^^^^^^^^
14 | ----------- not a foreign function or static
16 note: the lint level is defined here
17 --> $DIR/issue-47725.rs:1:9
19 LL | #![warn(unused_attributes)]
21 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
23 warning: attribute should be applied to a foreign function or static
24 --> $DIR/issue-47725.rs:8:1
26 LL | #[link_name = "foobar"]
27 | ^^^^^^^^^^^^^^^^^^^^^^^
30 LL | | fn foo() -> u32;
32 | |_- not a foreign function or static
34 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
35 help: try `#[link(name = "foobar")]` instead
36 --> $DIR/issue-47725.rs:8:1
38 LL | #[link_name = "foobar"]
39 | ^^^^^^^^^^^^^^^^^^^^^^^
41 warning: attribute should be applied to a foreign function or static
42 --> $DIR/issue-47725.rs:17:1
48 LL | | fn bar() -> u32;
50 | |_- not a foreign function or static
52 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
53 help: try `#[link(name = "...")]` instead
54 --> $DIR/issue-47725.rs:17:1
59 error: aborting due to previous error; 3 warnings emitted