blob: 9bbb7b073a4b0800a7cadffc9c2d7d0b624d03f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![warn(clippy::exit)]
fn also_not_main() {
std::process::exit(3);
//~^ ERROR: usage of `process::exit`
//~| NOTE: `-D clippy::exit` implied by `-D warnings`
}
fn main() {
if true {
std::process::exit(2);
};
also_not_main();
std::process::exit(1);
}
|