]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/usefulness/issue-80501-or-pat-and-macro.rs
2 #![deny(unreachable_patterns)]
8 pub struct ApplicationTy(TypeCtor
);
16 fn _foo(ty
: ApplicationTy
) {
18 ty_app
!(TypeCtor
::Array
) | ty_app
!(TypeCtor
::Slice
) => {}
21 // same as above, with the macro expanded
23 ApplicationTy(TypeCtor
::Array
) | ApplicationTy(TypeCtor
::Slice
) => {}