blob: 13136a0f56977f9a3ee8a99adb15ecfb4f88b1f3 [file] [log] [blame]
mod declaration {
use linkme::distributed_slice;
#[distributed_slice]
pub static SLICE: [i32];
#[test]
fn test_mod_slice() {
assert!(!SLICE.is_empty());
}
}
mod usage {
use linkme::distributed_slice;
#[distributed_slice(super::declaration::SLICE)]
pub static N: i32 = 9;
}