1 #![cfg_attr(feature = "used_linker", feature(used_with_arg))] 2 3 use linkme::distributed_slice; 4 5 pub struct Bencher; 6 7 #[distributed_slice] 8 pub static BENCHMARKS: [fn(&mut Bencher)]; 9 10 #[distributed_slice(BENCHMARKS)] 11 static BENCH_WTF: usize = 999; 12 13 #[distributed_slice(BENCHMARKS)] wrong_bench_fn<'a>(_: &'a mut ())14fn wrong_bench_fn<'a>(_: &'a mut ()) {} 15 main()16fn main() {} 17