Add ui regression test for #12371

This commit is contained in:
Guillaume Gomez 2024-02-28 12:48:00 +01:00
parent ebf20954ee
commit 8473716f6e

View File

@ -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
}