mirror of
https://git.proxmox.com/git/rustc
synced 2025-07-19 07:49:49 +00:00
20 lines
509 B
Rust
20 lines
509 B
Rust
#![feature(used_with_arg)]
|
|
|
|
#[used(linker)]
|
|
static mut USED_LINKER: [usize; 1] = [0];
|
|
|
|
#[used(compiler)]
|
|
static mut USED_COMPILER: [usize; 1] = [0];
|
|
|
|
#[used(compiler)] //~ ERROR `used(compiler)` and `used(linker)` can't be used together
|
|
#[used(linker)]
|
|
static mut USED_COMPILER_LINKER2: [usize; 1] = [0];
|
|
|
|
#[used(compiler)] //~ ERROR `used(compiler)` and `used(linker)` can't be used together
|
|
#[used(linker)]
|
|
#[used(compiler)]
|
|
#[used(linker)]
|
|
static mut USED_COMPILER_LINKER3: [usize; 1] = [0];
|
|
|
|
fn main() {}
|