Closed
Description
#
is not valid lifetime, so using :litetime
specifier should not cause local ambiguity.
Example:
macro_rules! bug {
($($lif2:lifetime ,)* #) => {};
}
bug!('a, #);
error: local ambiguity: multiple parsing options: built-in NTs lifetime ('lif2') or 1 other option.
--> src/main.rs:7:10
|
7 | bug!('a, #);
| ^
cc tracking issue for $:lifetime matcher: #34303