mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
8 lines
249 B
Rust
8 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`
|