]> git.lizzy.rs Git - rust.git/blob - tests/ui/exit2.rs
Auto merge of #6298 - JohnTitor:fix-example, r=llogiq
[rust.git] / 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 }