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,11 @@
// edition: 2021
// Regression test for <https://github.com/rust-lang/rust/issues/118904>.
// `assert!(true)` and `assert!(!false)` should have similar coverage spans.
fn main() {
assert!(true);
assert!(!false);
assert!(!!true);
assert!(!!!false);
}