rust/tests/ui/conditional-compilation/cfg-attr-cfg-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
210 B
Rust
Raw Normal View History

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