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