blob: d5ff93fb9ccb8df5d1c8734196fa6eb7be3915fe (
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);
}
|