rust/src/test/ui/conditional-compilation/cfg-attr-cfg-2.rs
2018-12-25 21:08:33 -07:00

10 lines
208 B
Rust

//
// 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() { }