Sign in
android
/
toolchain
/
rustc
/
951ae7a5eefab93734d1309f0497487f13f59fbf
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
short_circuit_statement.fixed
blob: a9930ef4dbb6141c57582bf1e207181068c2584f [
file
] [
log
] [
blame
]
#![warn(clippy::short_circuit_statement)]
#![allow(clippy::nonminimal_bool)]
fn main
()
{
if
f
()
{
g
();
}
if
!
f
()
{
g
();
}
if
1
!=
2
{
g
();
}
}
fn f
()
->
bool
{
true
}
fn g
()
->
bool
{
false
}