]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/derive-union.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / proc-macro / derive-union.rs
1 // run-pass
2
3 #![allow(unused_variables)]
4 // aux-build:derive-union.rs
5
6 #[macro_use]
7 extern crate derive_union;
8
9 #[repr(C)]
10 #[derive(UnionTest)]
11 union Test {
12     a: u8,
13 }
14
15 fn main() {
16     let t = Test { a: 0 };
17 }