]> git.lizzy.rs Git - rust.git/blob - src/test/ui/conditional-compilation/cfg-attr-cfg-2.rs
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[rust.git] / src / test / ui / conditional-compilation / cfg-attr-cfg-2.rs
1 //
2 // error-pattern: `main` function not found
3 // compile-flags: --cfg foo
4
5 // main is conditionally compiled, but the conditional compilation
6 // is conditional too!
7
8 #[cfg_attr(foo, cfg(bar))]
9 fn main() { }