rust/tests/ui/union/union-backcomp.rs
Matthew Jasper 982b49494e Remove revisions for THIR unsafeck
This is to make the diff when stabilizing it easier to review.
2024-01-05 09:30:27 +00:00

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,
}
}