mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 11:23:03 +00:00

While `false` is accepted by `--cfg` it isn't by `#[cfg(false)]` since in that context `false` is the boolean not a ident.
10 lines
318 B
Rust
10 lines
318 B
Rust
//@ check-pass
|
|
//@ revisions: n no off _false zero
|
|
//@ [n] compile-flags: -Cinstrument-coverage=n
|
|
//@ [no] compile-flags: -Cinstrument-coverage=no
|
|
//@ [off] compile-flags: -Cinstrument-coverage=off
|
|
//@ [_false] compile-flags: -Cinstrument-coverage=false
|
|
//@ [zero] compile-flags: -Cinstrument-coverage=0
|
|
|
|
fn main() {}
|