blob: 663739f235a438340521d585fb98219411ec008a [file] [log] [blame]
// A single lifetime is not parsed as a type.
// `ty` matcher in particular doesn't accept a single lifetime
macro_rules! m {
($t: ty) => {
let _: $t;
};
}
fn main() {
m!('static);
//~^ ERROR lifetime in trait object type must be followed by `+`
//~| ERROR at least one trait is required for an object type
//~| WARN trait objects without an explicit `dyn` are deprecated
//~| WARN this is accepted in the current edition
}