rust/tests/ui/union/union-backcomp.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
336 B
Rust
Raw Normal View History

// run-pass
// revisions: mirunsafeck thirunsafeck
// [thirunsafeck]compile-flags: -Z thir-unsafeck
#![allow(path_statements)]
#![allow(dead_code)]
2016-10-19 20:33:41 +00:00
macro_rules! union {
() => (struct S;)
}
union!();
fn union() {}
fn main() {
union();
let union = 10;
union;
union as u8;
union U {
a: u8,
}
}