Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
cfg
/
cmdline-false.rs
blob: 917679e2e424b0924f92fa9dd770bc546b4ded85 [
file
] [
log
] [
blame
] [
edit
]
/// 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
}