diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-01 23:37:49 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-10 18:50:35 +0500 |
| commit | 259512e3b6a920b1e1eb6034fbc738e7b9815337 (patch) | |
| tree | c4c6b3982318b82036fd4d7d2b66885eb5ef814b /tests/ui/drop | |
| parent | 1fb5e0149fb85af0e49fa40329cbc352b4cba861 (diff) | |
| download | rust-259512e3b6a920b1e1eb6034fbc738e7b9815337.tar.gz rust-259512e3b6a920b1e1eb6034fbc738e7b9815337.zip | |
cleaned up some tests
Diffstat (limited to 'tests/ui/drop')
| -rw-r--r-- | tests/ui/drop/box-drop-unused-value-statement-regression.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/ui/drop/box-drop-unused-value-statement-regression.rs b/tests/ui/drop/box-drop-unused-value-statement-regression.rs index 3d5eff2c48d..43865e08444 100644 --- a/tests/ui/drop/box-drop-unused-value-statement-regression.rs +++ b/tests/ui/drop/box-drop-unused-value-statement-regression.rs @@ -1,12 +1,12 @@ -//@ run-pass -// Issue #3878 -// Issue Name: Unused move causes a crash -// Abstract: zero-fill to block after drop - +//! Regression test for a crash caused by an "unsused move" +//! (specifically, a variable bound to a `Box` used as a statement) +//! leading to incorrect memory zero-filling after drop. +//! +//! Regression test for <https://github.com/rust-lang/rust/issues/3878>. -#![allow(path_statements)] +//@ run-pass pub fn main() { let y: Box<_> = Box::new(1); - y; + drop(y); } |
