mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
11 lines
200 B
Rust
11 lines
200 B
Rust
//@ check-pass
|
|
#![feature(never_type)]
|
|
#[derive(Copy, Clone)]
|
|
pub enum E { A(!), }
|
|
pub union U { u: (), e: E, }
|
|
pub const C: () = {
|
|
let E::A(ref a) = unsafe { &(&U { u: () }).e};
|
|
};
|
|
|
|
fn main() {}
|