about summary refs log tree commit diff
path: root/tests/ui/consts/let-irrefutable-pattern-ice-120337.rs
blob: e0d1d515deb0270bc8b71c06f929b54c33ae41b4 (plain)
1
2
3
4
5
6
7
8
9
10
//@ 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() {}