7 lines
249 B
Rust
7 lines
249 B
Rust
//@ compile-flags: --cfg foo --check-cfg=cfg(foo,bar)
|
|
|
|
// main is conditionally compiled, but the conditional compilation
|
|
// is conditional too!
|
|
|
|
#[cfg_attr(foo, cfg(bar))]
|
|
fn main() { } //~ ERROR `main` function not found in crate `cfg_attr_cfg_2`
|