Skip to content

Commit 29c3bba

Browse files
committed
add passing miri testcase
Signed-off-by: Petros Angelatos <[email protected]>
1 parent b8df250 commit 29c3bba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fn main() {
2+
let mut v = vec![Box::new(0u64), Box::new(1u64)];
3+
for item in v.extract_if(.., |x| **x == 0) {
4+
drop(item);
5+
}
6+
}

0 commit comments

Comments
 (0)