]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/exit2.rs
Rollup merge of #102072 - scottmcm:ptr-alignment-type, r=thomcc
[rust.git] / src / tools / clippy / tests / ui / exit2.rs
1 #[warn(clippy::exit)]
2
3 fn also_not_main() {
4     std::process::exit(3);
5 }
6
7 fn main() {
8     if true {
9         std::process::exit(2);
10     };
11     also_not_main();
12     std::process::exit(1);
13 }