1error[E0601]: `main` function not found in crate `cfg_attr_cfg_2` 2 --> $DIR/cfg-attr-cfg-2.rs:8:1 3 | 4LL | / #[cfg_attr(foo, cfg(bar))] 5LL | | fn main() { } 6 | |_____________^ consider adding a `main` function to `$DIR/cfg-attr-cfg-2.rs` 7 8error: aborting due to previous error 9 10For more information about this error, try `rustc --explain E0601`. 11