rust/tests/coverage/assert_not.coverage

13 lines
424 B
Plaintext
Raw Normal View History

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|}