diff options
| author | DutchGhost <kasper199914@gmail.com> | 2020-03-16 10:51:00 +0100 |
|---|---|---|
| committer | DutchGhost <kasper199914@gmail.com> | 2020-03-16 10:51:00 +0100 |
| commit | 57b1e7a428c16a1b692b88cc25ce8b09d8ea503b (patch) | |
| tree | 23b77591516d2b582d4785d8c778f3f340aff289 | |
| parent | a674e1c88c632c237d7e56fbb6972b46c39a1fb0 (diff) | |
| download | rust-57b1e7a428c16a1b692b88cc25ce8b09d8ea503b.tar.gz rust-57b1e7a428c16a1b692b88cc25ce8b09d8ea503b.zip | |
Remove the call that makes miri fail
| -rw-r--r-- | src/libcore/tests/mem.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libcore/tests/mem.rs b/src/libcore/tests/mem.rs index 8337ab10341..2329bf97ff5 100644 --- a/src/libcore/tests/mem.rs +++ b/src/libcore/tests/mem.rs @@ -142,8 +142,4 @@ fn test_const_forget() { const fn const_forget_box<T>(x: Box<T>) { forget(x); } - - // Call the forget_box at runtime, - // as we can't const-construct a box yet. - const_forget_box(Box::new(0i32)); } |
