mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
14 lines
188 B
Rust
14 lines
188 B
Rust
#[warn(clippy::exit)]
|
|
|
|
fn also_not_main() {
|
|
std::process::exit(3);
|
|
}
|
|
|
|
fn main() {
|
|
if true {
|
|
std::process::exit(2);
|
|
};
|
|
also_not_main();
|
|
std::process::exit(1);
|
|
}
|