about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/ui/assertions_on_constants.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/assertions_on_constants.rs b/tests/ui/assertions_on_constants.rs
index 0d2953c7ed8..aee6cc505ab 100644
--- a/tests/ui/assertions_on_constants.rs
+++ b/tests/ui/assertions_on_constants.rs
@@ -18,6 +18,8 @@ fn main() {
     assert!(C);
 
     debug_assert!(true);
+    // Don't lint this, since there is no better way for expressing "Only panic in debug mode".
+    debug_assert!(false); // #3948
     assert_const!(3);
     assert_const!(-1);
 }