mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 08:16:56 +00:00
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
error[E0539]: malformed `link_name` attribute input
|
|
--> $DIR/issue-47725.rs:19:1
|
|
|
|
|
LL | #[link_name]
|
|
| ^^^^^^^^^^^^ help: must be of the form: `#[link_name = "name"]`
|
|
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link_name-attribute>
|
|
|
|
warning: `#[link_name]` attribute cannot be used on structs
|
|
--> $DIR/issue-47725.rs:3:1
|
|
|
|
|
LL | #[link_name = "foo"]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= help: `#[link_name]` can be applied to foreign functions and foreign statics
|
|
note: the lint level is defined here
|
|
--> $DIR/issue-47725.rs:1:9
|
|
|
|
|
LL | #![warn(unused_attributes)]
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
warning: `#[link_name]` attribute cannot be used on foreign modules
|
|
--> $DIR/issue-47725.rs:10:1
|
|
|
|
|
LL | #[link_name = "foobar"]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= help: `#[link_name]` can be applied to foreign functions and foreign statics
|
|
|
|
warning: `#[link_name]` attribute cannot be used on foreign modules
|
|
--> $DIR/issue-47725.rs:19:1
|
|
|
|
|
LL | #[link_name]
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= help: `#[link_name]` can be applied to foreign functions and foreign statics
|
|
|
|
error: aborting due to 1 previous error; 3 warnings emitted
|
|
|
|
For more information about this error, try `rustc --explain E0539`.
|