summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/derive-union.rs
blob: e83eee0936ada46a5f0b7da2e94395b95a474537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-pass

#![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 };
}