]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unit_cmp.rs
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / unit_cmp.rs
index 48c22f7f875a781e209eb9175066e3fb8df9021a..8d3a4eed82e3e6a41bf220dad7e46f3d59a4f7f1 100644 (file)
@@ -20,4 +20,38 @@ fn main() {
     } > {
         false;
     } {}
+
+    assert_eq!(
+        {
+            true;
+        },
+        {
+            false;
+        }
+    );
+    debug_assert_eq!(
+        {
+            true;
+        },
+        {
+            false;
+        }
+    );
+
+    assert_ne!(
+        {
+            true;
+        },
+        {
+            false;
+        }
+    );
+    debug_assert_ne!(
+        {
+            true;
+        },
+        {
+            false;
+        }
+    );
 }