1 #![deny(unreachable_patterns)]
2 //~^ NOTE: lint level is defined here
8 pub struct ApplicationTy(TypeCtor);
12 ApplicationTy($ctor) //~ ERROR unreachable pattern
16 fn _foo(ty: ApplicationTy) {
18 ty_app!(TypeCtor::Array) | ty_app!(TypeCtor::Slice) => {} //~ NOTE: in this expansion
21 // same as above, with the macro expanded
23 ApplicationTy(TypeCtor::Array) | ApplicationTy(TypeCtor::Slice) => {}