We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be98df5 commit 5b836e3Copy full SHA for 5b836e3
tests/ui/assertions_on_constants.rs
@@ -18,6 +18,8 @@ fn main() {
18
assert!(C);
19
20
debug_assert!(true);
21
+ // Don't lint this, since there is no better way for expressing "Only panic in debug mode".
22
+ debug_assert!(false); // #3948
23
assert_const!(3);
24
assert_const!(-1);
25
}
0 commit comments