Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
conditional-compilation
/
cfg-attr-cfg-2.rs
blob: 80735990015c4bda479e6b3a0263d3952074eeba [
file
] [
log
] [
blame
]
//@ 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
()
{
}
//~ ERROR `main` function not found in crate `cfg_attr_cfg_2`