1
Fork 0

coverage: Regression test for assert!(!false)

This commit is contained in:
Zalathar 2023-12-16 20:57:20 +11:00
parent 1c6a06183a
commit bc77717d68
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,12 @@
LL| |// edition: 2021
LL| |
LL| |// Regression test for <https://github.com/rust-lang/rust/issues/118904>.
LL| |// `assert!(true)` and `assert!(!false)` should have similar coverage spans.
LL| |
LL| 1|fn main() {
LL| 1| assert!(true);
LL| 1| assert!(!false);
LL| 1| assert!(!!true);
LL| 1| assert!(!!!false);
LL| 1|}