mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
07dc3ebf5c
Unlike static declarations with #[linkage], for definitions rustc doesn't rewrite it to add an extra indirection.
11 lines
393 B
Plaintext
11 lines
393 B
Plaintext
error: extern mutable statics are not allowed with `#[linkage]`
|
|
--> $DIR/linkage-attr-mutable-static.rs:9:9
|
|
|
|
|
LL | #[linkage = "extern_weak"]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: marking the extern static mutable would allow changing which symbol the static references rather than make the target of the symbol mutable
|
|
|
|
error: aborting due to 1 previous error
|
|
|