diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2023-12-16 20:57:20 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2023-12-16 20:58:04 +1100 |
| commit | bc77717d68e72d6241424362d2fe509d4fb4a2e4 (patch) | |
| tree | 880eb1a51036a8f57540cf984d13ce585cb203ec /tests/coverage/assert_not.rs | |
| parent | 1c6a06183a1452c2772db370b572e38bac9c5d86 (diff) | |
| download | rust-bc77717d68e72d6241424362d2fe509d4fb4a2e4.tar.gz rust-bc77717d68e72d6241424362d2fe509d4fb4a2e4.zip | |
coverage: Regression test for `assert!(!false)`
Diffstat (limited to 'tests/coverage/assert_not.rs')
| -rw-r--r-- | tests/coverage/assert_not.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/coverage/assert_not.rs b/tests/coverage/assert_not.rs new file mode 100644 index 00000000000..95204fcadd1 --- /dev/null +++ b/tests/coverage/assert_not.rs @@ -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); +} |
