blob: de8afd95a84a9e5c1cd9570f61f2481ca05391f1 [file] [log] [blame] [edit]
//@ run-pass
#![allow(unreachable_patterns)]
#![feature(box_patterns)]
struct Foo{}
pub fn main() {
let b = Box::new(Foo{});
let box f = &b;
let _: &Foo = f;
match &&&b {
box f => {
let _: &Foo = f;
},
_ => panic!(),
}
}