Add ui regression test for #12371
This commit is contained in:
parent
ebf20954ee
commit
8473716f6e
@ -173,3 +173,8 @@ fn issue_5794() {
|
||||
if !b == !c {} //~ ERROR: this boolean expression can be simplified
|
||||
if !b != !c {} //~ ERROR: this boolean expression can be simplified
|
||||
}
|
||||
|
||||
fn issue_12371(x: usize) -> bool {
|
||||
// Should not warn!
|
||||
!x != 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user