• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #![cfg_attr(feature = "used_linker", feature(used_with_arg))]
2 
3 use linkme::distributed_slice;
4 
5 mod path {
6     pub mod to {}
7 }
8 
9 #[distributed_slice]
10 #[linkme(crate = path::to::missing)]
11 pub static SLICE1: [&'static str];
12 
13 #[distributed_slice]
14 pub static SLICE2: [&'static str];
15 
16 #[distributed_slice(SLICE2)]
17 #[linkme(crate = path::to::missing)]
18 static ELEMENT: &str = "";
19 
main()20 fn main() {}
21