summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-34171.rs
blob: 157c58c459d6663ce8a5a1c344da9a6bd104eeff (plain)
1
2
3
4
5
6
7
8
9
10
// check-pass

macro_rules! null { ($i:tt) => {} }
macro_rules! apply_null {
    ($i:item) => { null! { $i } }
}

fn main() {
    apply_null!(#[cfg(all())] fn f() {});
}