]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/used_with_arg.rs
Rollup merge of #100030 - WaffleLapkin:nice_pointer_sis, r=scottmcm
[rust.git] / src / test / ui / attributes / used_with_arg.rs
1 #![feature(used_with_arg)]
2
3 #[used(linker)]
4 static mut USED_LINKER: [usize; 1] = [0];
5
6 #[used(compiler)]
7 static mut USED_COMPILER: [usize; 1] = [0];
8
9 #[used(compiler)] //~ ERROR `used(compiler)` and `used(linker)` can't be used together
10 #[used(linker)]
11 static mut USED_COMPILER_LINKER2: [usize; 1] = [0];
12
13 #[used(compiler)] //~ ERROR `used(compiler)` and `used(linker)` can't be used together
14 #[used(linker)]
15 #[used(compiler)]
16 #[used(linker)]
17 static mut USED_COMPILER_LINKER3: [usize; 1] = [0];
18
19 fn main() {}