rust-clippy/tests/ui/exit3.rs

8 lines
117 B
Rust

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