extern crate structview; use structview::View; #[derive(Clone, Copy, View)] #[repr(C)] union Test { foo: [u8; 4], bar: u16, //~ ERROR the trait bound `u16: structview::View` is not satisfied } fn main() {}