Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
conditional-compilation
/
test-cfg.rs
blob: 7c6c692072de4e36f80987b0d0750089c9f4de31 [
file
] [
log
] [
blame
]
//@ compile-flags: --cfg foo
#[
cfg
(
all
(
foo
,
bar
))]
// foo AND bar
fn
foo
()
{}
fn
main
()
{
foo
();
//~ ERROR cannot find function `foo` in this scope
}