Sign in
rust
/
rust-clippy
/
62a82b361c02838afdf607d461726e0407f1a5ec
/
.
/
tests
/
ui
/
short_circuit_statement.rs
blob: 71f7c7f2abf77fce8ec3cf64ffb11820629cff1b [
file
] [
log
] [
blame
]
#![
warn
(
clippy
::
short_circuit_statement
)]
#![
allow
(
clippy
::
nonminimal_bool
)]
fn
main
()
{
f
()
&&
g
();
f
()
||
g
();
1
==
2
||
g
();
}
fn
f
()
->
bool
{
true
}
fn
g
()
->
bool
{
false
}