summaryrefslogtreecommitdiffstats
path: root/tests/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.rs
blob: 45b757e9283024e7621d8401b5bbf4e22ed15825 (plain)
1
2
3
4
5
6
7
8
9
10
11
macro_rules! foo {
    () => {
        #[cfg_attr(all(), unknown)]
        //~^ ERROR cannot find attribute `unknown` in this scope
        fn foo() {}
    }
}

foo!();

fn main() {}