]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-non-lifetime.rs
Merge commit '533f0fc81ab9ba097779fcd27c8f9ea12261fef5' into psimd
[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 }