]> git.lizzy.rs Git - rust.git/blob - tests/ui/conditional-compilation/cfg-attr-cfg-2.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / 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() { }