We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 414482f commit 9322658Copy full SHA for 9322658
src/tools/miri/tests/pass/issues/issue-141032.rs
@@ -0,0 +1,8 @@
1
+//@compile-flags: -Zmiri-recursive-validation
2
+
3
+fn main() {
4
+ let mut v = vec![Box::new(0u64), Box::new(1u64)];
5
+ for item in v.extract_if(.., |x| **x == 0) {
6
+ drop(item);
7
+ }
8
+}
0 commit comments