summaryrefslogtreecommitdiffstats
path: root/tests/ui/conditional-compilation/cfg-attr-cfg-2.rs
blob: 898c5bac85077f0012fa65a3179e6f2f97242dc8 (plain)
1
2
3
4
5
6
7
8
9
//
// error-pattern: `main` function not found
// compile-flags: --cfg foo

// main is conditionally compiled, but the conditional compilation
// is conditional too!

#[cfg_attr(foo, cfg(bar))]
fn main() { }