Debian Codegraph @

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

raw
1 use link_section::declarative::{section, in_section};
2 use link_section::TypedSection;
3
4 section! {
5 #[section(unsafe, type = typed)]
6 static FOO: TypedSection<fn()>;
7 }
8
9 in_section! {
10 #[in_section(unsafe, type = typed, name = FOO)]
11 fn foo() {
12
13 }
14 }
15
16 fn main() {
17 }