Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
conditional-compilation
/
cfg-attr-cfg-2.rs
blob: c801bbccedd6e786737f0fccac75608f13c019dd [
file
] [
log
] [
blame
] [
edit
]
//@ error-pattern: `main` function not found
//@ compile-flags: --cfg foo --check-cfg=cfg(foo,bar)
// main is conditionally compiled, but the conditional compilation
// is conditional too!
#[
cfg_attr
(
foo
,
cfg
(
bar
))]
fn
main
()
{
}