nearest 0.4.5

Self-relative pointer library for region-based allocation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! A data enum with #[repr(u8)] but missing #[repr(C, u8)] must not compile.

use nearest::Flat;

#[derive(Flat)]
#[repr(u8)]
enum Bad {
  A,
  B { x: u32 },
}

fn main() {}