mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 16:45:37 +00:00
9 lines
232 B
Rust
9 lines
232 B
Rust
//@ error-pattern: `main` function not found
|
|
//@ 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() { }
|