mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
10 lines
210 B
Rust
10 lines
210 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() { }
|