Skip to content

Commit

Permalink
add regression test for #78892
Browse files Browse the repository at this point in the history
  • Loading branch information
SNCPlay42 committed Nov 9, 2020
1 parent 25f6938 commit 868aa89
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
@@ -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 868aa89

Please sign in to comment.