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

8 lines
116 B
Rust

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