rust/tests/ui/exit3.rs
2019-11-07 17:11:06 +01:00

9 lines
116 B
Rust

#[warn(clippy::exit)]
fn main() {
if true {
std::process::exit(2);
};
std::process::exit(1);
}