1 #![warn(unused_attributes)] //~ NOTE lint level is defined here
4 //~^ WARN attribute should be applied to a foreign function or static [unused_attributes]
5 //~| WARN this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
6 struct Foo; //~ NOTE not a foreign function or static
8 #[link_name = "foobar"]
9 //~^ WARN attribute should be applied to a foreign function or static [unused_attributes]
10 //~| WARN this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11 //~| HELP try `#[link(name = "foobar")]` instead
15 //~^^^ NOTE not a foreign function or static
18 //~^ ERROR malformed `link_name` attribute input
19 //~| HELP must be of the form
20 //~| WARN attribute should be applied to a foreign function or static [unused_attributes]
21 //~| WARN this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22 //~| HELP try `#[link(name = "...")]` instead
26 //~^^^ NOTE not a foreign function or static