mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
27 lines
248 B
Rust
27 lines
248 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,
|
|
}
|
|
}
|