if
body is never executed because false
is always false
1fn main() {
2 if false { 3 // this is untouched comment
4 // this is untouched comment
5 // this is untouched comment
if
blocks with trivial conditions such as if true
and if false
are
suspicious and require an audit. Such conditions are probably debugging
remnants and should not make it into your source tree.
Consider revisiting this if
block.
if true {
/* ... */
} else {
/* unreachable branch */
}