link-section 0.17.0

Link-time initialized slices for Rust, with full support for Linux, macOS, Windows, WASM and many more platforms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0277]: the trait bound `SECTION: link_section::__support::SectionItemTyped<u64>` is not satisfied
  --> tests/errors/bad_item.rs:12:1
   |
12 | #[in_section(SECTION)]
   | ^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
   |
help: the trait `SectionItemTyped<u64>` is not implemented for `SECTION`
      but trait `SectionItemTyped<u32>` is implemented for it
  --> tests/errors/bad_item.rs:3:1
   |
 3 | #[section(typed)]
   | ^^^^^^^^^^^^^^^^^
   = help: for that trait implementation, expected `u32`, found `u64`
   = note: this error originates in the macro `$crate::__in_section_crate` which comes from the expansion of the attribute macro `section` (in Nightly builds, run with -Z macro-backtrace for more info)