]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-non-lifetime.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / macros / macro-non-lifetime.rs
1 // Test for issue #50381: non-lifetime passed to :lifetime.
2
3 macro_rules! m { ($x:lifetime) => { } }
4
5 fn main() {
6     m!(a);
7     //~^ ERROR no rules expected the token `a`
8 }