Debian Codegraph @

debian/rust-vendor/link-section/tests/target-test/link-section-reference-const.rs

raw
1 use link_section::declarative::{in_section, section};
2 use link_section::TypedReferenceSection;
3
4 section! {
5 #[section(unsafe, type = reference)]
6 static FOO: TypedReferenceSection<u32>;
7 }
8
9 in_section! {
10 #[in_section(unsafe, type = reference, name = FOO)]
11 const ITEM: u32 = 42;
12 }
13
14 fn main() {}