about summary refs log tree commit diff
path: root/tests/ui/proc-macro/derive-union.rs
blob: d1e65bf45957b62fefa54cfcb64801c79858df9f (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 };
}