]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-non-lifetime.rs
Rollup merge of #87596 - jesyspa:issue-87318-hidden-whitespace, r=estebank
[rust.git] / src / test / ui / macros / macro-non-lifetime.rs
1 // Test for issue #50381: non-lifetime passed to :lifetime.
2
3 #![feature(macro_lifetime_matcher)]
4
5 macro_rules! m { ($x:lifetime) => { } }
6
7 fn main() {
8     m!(a);
9     //~^ ERROR no rules expected the token `a`
10 }