1
Fork 0
rust/src/test/run-pass/proc-macro/derive-union.rs

16 lines
199 B
Rust
Raw Normal View History

#![allow(unused_variables)]
// aux-build:derive-union.rs
#[macro_use]
extern crate derive_union;
#[repr(C)]
#[derive(UnionTest)]
union Test {
a: u8,
}
fn main() {
let t = Test { a: 0 };
}