Add test for debug_assert!(false)

This commit is contained in:
flip1995 2019-04-18 11:48:19 +02:00
parent be98df5ac3
commit 5b836e344c
No known key found for this signature in database
GPG key ID: 01C836B640FFDFB1

View file

@ -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);
}