blob: a3ff4ad1d47054f238203ed5d2474497714540fd [file] [log] [blame]
#![feature(const_fn, 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() {}