rust/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);
}