mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
27 lines
249 B
Rust
27 lines
249 B
Rust
//@ run-pass
|
|
|
|
#![allow(path_statements)]
|
|
#![allow(dead_code)]
|
|
|
|
macro_rules! union {
|
|
() => (struct S;)
|
|
}
|
|
|
|
union!();
|
|
|
|
fn union() {}
|
|
|
|
fn main() {
|
|
union();
|
|
|
|
let union = 10;
|
|
|
|
union;
|
|
|
|
union as u8;
|
|
|
|
union U {
|
|
a: u8,
|
|
}
|
|
}
|