2017-03-16 16:47:32 -05:00
|
|
|
// A single lifetime is not parsed as a type.
|
|
|
|
// `ty` matcher in particular doesn't accept a single lifetime
|
|
|
|
|
|
|
|
macro_rules! m {
|
2020-03-07 06:52:55 -06:00
|
|
|
($t: ty) => {
|
|
|
|
let _: $t;
|
|
|
|
};
|
2017-03-16 16:47:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2020-03-07 06:52:55 -06:00
|
|
|
m!('static);
|
|
|
|
//~^ ERROR lifetime in trait object type must be followed by `+`
|
|
|
|
//~| ERROR at least one trait is required for an object type
|
2017-03-16 16:47:32 -05:00
|
|
|
}
|