Skip to content

Commit

Permalink
Rollup merge of #78898 - SNCPlay42:issue-78892, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
add regression test for #78892

closes #78892, which was already fixed on nightly.
  • Loading branch information
jonas-schievink authored Nov 10, 2020
2 parents 354098c + 868aa89 commit 6b27f0d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/ui/macros/issue-78892-substitution-in-statement-attr.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// check-pass

// regression test for #78892

macro_rules! mac {
($lint_name:ident) => {{
#[allow($lint_name)]
let _ = ();
}};
}

fn main() {
mac!(dead_code)
}

0 comments on commit 6b27f0d

Please sign in to comment.