18 lines
440 B
Rust
18 lines
440 B
Rust
thread_local! {
|
|
//~^ ERROR: use of an internal attribute [E0658]
|
|
//~| ERROR: use of an internal attribute [E0658]
|
|
//~| ERROR: `#[used(linker)]` is currently unstable [E0658]
|
|
//~| ERROR: `#[used]` attribute cannot be used on constants
|
|
|
|
#[rustc_dummy = 17]
|
|
pub static FOO: () = ();
|
|
|
|
#[cfg_attr(true, rustc_dummy = 17)]
|
|
pub static BAR: () = ();
|
|
|
|
#[used(linker)]
|
|
pub static BAZ: () = ();
|
|
}
|
|
|
|
fn main() {}
|