rust/tests/ui/macros/macro-non-lifetime.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
174 B
Rust
Raw Normal View History

// Test for issue #50381: non-lifetime passed to :lifetime.
macro_rules! m { ($x:lifetime) => { } }
fn main() {
m!(a);
//~^ ERROR no rules expected the token `a`
}