Sign in
rust
/
rust-clippy
/
62a82b361c02838afdf607d461726e0407f1a5ec
/
.
/
tests
/
ui
/
exit2.rs
blob: d5ff93fb9ccb8df5d1c8734196fa6eb7be3915fe [
file
] [
log
] [
blame
]
#[
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
);
}