mirror of
https://git.proxmox.com/git/rustc
synced 2025-10-18 18:22:13 +00:00
10 lines
208 B
Rust
10 lines
208 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() { }
|