rust-clippy/tests/ui/exit3.rs

9 lines
116 B
Rust
Raw Normal View History

2019-10-29 20:34:00 +00:00
#[warn(clippy::exit)]
fn main() {
if true {
std::process::exit(2);
};
std::process::exit(1);
}