rust/tests/ui/lifetimes/raw/three-tokens.rs
2024-09-06 10:32:48 -04:00

13 lines
219 B
Rust

//@ edition: 2015
//@ check-pass
// Ensure that we parse `'r#lt` as three tokens in edition 2015.
macro_rules! ed2015 {
('r # lt) => {};
($lt:lifetime) => { compile_error!() };
}
ed2015!('r#lt);
fn main() {}