about summary refs log tree commit diff
path: root/tests/ui/needless_bool/fixable.fixed
diff options
context:
space:
mode:
authorflip1995 <philipp.krones@embecosm.com>2021-12-30 14:04:13 +0100
committerflip1995 <philipp.krones@embecosm.com>2021-12-30 14:17:53 +0100
commite45842e3602e806345b3355ed0955e604daef49c (patch)
treedb4d1481f0b49bae4bdeedea435b5cfc0ceb6e38 /tests/ui/needless_bool/fixable.fixed
parent01217f6f4c752700754e8e66eb02d763c4c55c72 (diff)
parentc1cd64b9c6b29ed2a577fc174a50c76267a966e2 (diff)
downloadrust-e45842e3602e806345b3355ed0955e604daef49c.tar.gz
rust-e45842e3602e806345b3355ed0955e604daef49c.zip
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'tests/ui/needless_bool/fixable.fixed')
-rw-r--r--tests/ui/needless_bool/fixable.fixed9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/needless_bool/fixable.fixed b/tests/ui/needless_bool/fixable.fixed
index 85da1f4e104..89dc13fd5b1 100644
--- a/tests/ui/needless_bool/fixable.fixed
+++ b/tests/ui/needless_bool/fixable.fixed
@@ -41,6 +41,15 @@ fn main() {
     x;
     !x;
     !(x && y);
+    let a = 0;
+    let b = 1;
+
+    a != b;
+    a == b;
+    a >= b;
+    a > b;
+    a <= b;
+    a < b;
     if x {
         x
     } else {