mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-26 16:37:30 +00:00
10 lines
213 B
Rust
10 lines
213 B
Rust
/// Test that `--cfg false` doesn't cause `cfg(false)` to evaluate to `true`
|
|
//@ compile-flags: --cfg false
|
|
|
|
#[cfg(false)]
|
|
fn foo() {}
|
|
|
|
fn main() {
|
|
foo(); //~ ERROR cannot find function `foo` in this scope
|
|
}
|