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
13
//! An unknown `#[flat(...)]` attribute on a variant must not compile.

use nearest::Flat;

#[derive(Flat)]
#[repr(u8)]
enum Bad {
  #[flat(skip)]
  A,
  B,
}

fn main() {}