Rollup merge of #70768 - petrochenkov:macambig, r=Centril,mark-i-m

macro_rules: `NtLifetime` cannot start with an identifier

Fixes https://github.com/rust-lang/rust/issues/70446
This commit is contained in:
Dylan DPC 2020-04-05 06:44:48 +02:00 committed by GitHub
commit d0dda18bd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,13 @@
// check-pass
macro_rules! foo {
($(: $p:path)? $(: $l:lifetime)? ) => { bar! {$(: $p)? $(: $l)? } };
}
macro_rules! bar {
($(: $p:path)? $(: $l:lifetime)? ) => {};
}
foo! {: 'a }
fn main() {}