2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-02-19 23:48:44 +00:00
rust-clippy/tests/ui/exit3.rs

9 lines
116 B
Rust
Raw Normal View History

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