blob: bb52e6fb1f4d55c345d6df2360ed27b71f98f87b [file]
#![feature(no_core)]
#![no_core]
pub enum TypeCtor {
Slice,
Array,
}
pub struct B<T>(T);
macro_rules! ty_app {
($_a:pat) => {
ApplicationTy($ctor) // { dg-error "unexpected token" }
// { dg-error "failed to parse tuple struct items" "" { target *-*-* } .-1 }
};
}
pub fn foo(ty: ApplicationTy) { // { dg-error "could not resolve type path 'ApplicationTy'" }
match ty {
ty_app!(bean::Array) => {}
}
}