1 #![cfg_attr(feature = "used_linker", feature(used_with_arg))]
2 
3 use linkme::distributed_slice;
4 
5 #[distributed_slice]
6 pub static SLICES: [fn()] = [..];
7 
8 #[distributed_slice(SLICES)]
type_param<T>()9 fn type_param<T>() {}
10 
11 #[distributed_slice(SLICES)]
const_param<const N: usize>()12 fn const_param<const N: usize>() {}
13 
main()14 fn main() {}
15