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