coverage: Regression test for assert!(!false)
This commit is contained in:
parent
1c6a06183a
commit
bc77717d68
3 changed files with 39 additions and 0 deletions
11
tests/coverage/assert_not.rs
Normal file
11
tests/coverage/assert_not.rs
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue