Skip to content

Commit 57b1e7a

Browse files
committed
Remove the call that makes miri fail
1 parent a674e1c commit 57b1e7a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/libcore/tests/mem.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,4 @@ fn test_const_forget() {
142142
const fn const_forget_box<T>(x: Box<T>) {
143143
forget(x);
144144
}
145-
146-
// Call the forget_box at runtime,
147-
// as we can't const-construct a box yet.
148-
const_forget_box(Box::new(0i32));
149145
}

0 commit comments

Comments
 (0)