mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Add test for debug_assert!(false)
This commit is contained in:
parent
be98df5ac3
commit
5b836e344c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue