blob: e922ffb74a5430440f07459227066dffdfcf1cc1 [file] [log] [blame]
#![feature(type_alias_impl_trait)]
pub type Foo = impl Send;
// This is not structural-match
struct A;
#[define_opaque(Foo)]
pub const fn value() -> Foo {
A
}
const VALUE: Foo = value();
fn test() {
match VALUE {
VALUE => (),
//~^ ERROR `Foo` cannot be used in patterns
_ => (),
}
}
fn main() {}