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