Sign in
rust
/
rust-clippy
/
refs/heads/beta
/
.
/
tests
/
ui
/
exit1_compile_flag_test.rs
blob: 9f83ed325336911189f7e7aa99bbfa5faaff6b1e [
file
] [
log
] [
blame
]
//@compile-flags: --test
#![
warn
(
clippy
::
exit
)]
fn
not_main
()
{
if
true
{
std
::
process
::
exit
(
4
);
//~^ exit
}
}
fn
main
()
{
if
true
{
std
::
process
::
exit
(
2
);
};
not_main
();
std
::
process
::
exit
(
1
);
}