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))]
main()9 fn main() { }
10