rust/tests/ui/feature-gates/feature-gate-used_with_arg.rs

8 lines
237 B
Rust
Raw Normal View History

2022-02-06 18:21:23 -06:00
#[used(linker)] //~ ERROR `#[used(linker)]` is currently unstable
static mut USED_LINKER: [usize; 1] = [0];
#[used(compiler)] //~ ERROR `#[used(compiler)]` is currently unstable
static mut USED_COMPILER: [usize; 1] = [0];
fn main() {}