• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 ())14 fn wrong_bench_fn<'a>(_: &'a mut ()) {}
15 
main()16 fn main() {}
17