Files
rust/tests/ui/cfg/cmdline-false.rs

10 lines
213 B
Rust
Raw Normal View History

/// 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
}