blob: 675d9f51532a4559d379231e6636ba93b3347a9b [file] [log] [blame]
// `ty` matcher accepts trait object types
macro_rules! m {
($t: ty) => ( let _: $t; )
}
fn main() {
m!(dyn Copy + Send + 'static);
//~^ ERROR the trait `Copy` is not dyn compatible
m!(dyn 'static + Send);
m!(dyn 'static +); //~ ERROR at least one trait is required for an object type
}