mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
18 lines
214 B
Rust
18 lines
214 B
Rust
//@ 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 };
|
|
}
|