blob: e021e9567e5c83a30f6d1e65ac3db3f5a6908e04 [file] [log] [blame]
// regression test for <https://github.com/rust-lang/rust/issues/141422>.
#![feature(unsafe_binders)]
#![allow(incomplete_features)]
#[derive(Copy, Clone)]
struct Adt<'a>(&'a ());
const C: Option<(unsafe<'a> Adt<'a>, Box<dyn Send>)> = None;
fn main() {
match None {
C => {}
//~^ ERROR constant of non-structural type
_ => {}
}
}