Sign in
rust
/
rust
/
0883b8cc7926859cd296afde42c5b2d7aaae5ce5
/
.
/
tests
/
ui
/
cfg
/
cmdline-false.rs
blob: 917679e2e424b0924f92fa9dd770bc546b4ded85 [
file
]
/// Test that `--cfg false` doesn't cause `cfg(false)` to evaluate to `true`
//@ compile-flags: --cfg r#false
#[
cfg
(
false
)]
fn
foo
()
{}
fn
main
()
{
foo
();
//~ ERROR cannot find function `foo` in this scope
}