Closed
Description
I tried this code:
#![allow(dead_code)]
fn fun() -> i32 {
function() && return 1;
panic!("stop");
}
fn function() -> bool {
true
}
fn main() {}
where function
is any function that returns a boolean
, and it gives the warning
unused logical operator , but actually works as expected, so i think this warning should not come up.