mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
15 lines
203 B
Rust
15 lines
203 B
Rust
#![warn(clippy::exit)]
|
|
|
|
fn also_not_main() {
|
|
std::process::exit(3);
|
|
//~^ exit
|
|
}
|
|
|
|
fn main() {
|
|
if true {
|
|
std::process::exit(2);
|
|
};
|
|
also_not_main();
|
|
std::process::exit(1);
|
|
}
|