summary refs log tree commit diff
path: root/tests/ui/consts/let-irrefutable-pattern-ice-120337.rs
blob: 7da6b7ca285c18ddb2683c6b5629c67d169b7b46 (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() {}