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