summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/miri_unleashed/box.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/miri_unleashed/box.rs')
-rw-r--r--tests/ui/consts/miri_unleashed/box.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/consts/miri_unleashed/box.rs b/tests/ui/consts/miri_unleashed/box.rs
index c2a260aa1..39cddda2b 100644
--- a/tests/ui/consts/miri_unleashed/box.rs
+++ b/tests/ui/consts/miri_unleashed/box.rs
@@ -1,12 +1,11 @@
// compile-flags: -Zunleash-the-miri-inside-of-you
-#![feature(box_syntax)]
use std::mem::ManuallyDrop;
fn main() {}
static TEST_BAD: &mut i32 = {
- &mut *(box 0)
+ &mut *(Box::new(0))
//~^ ERROR could not evaluate static initializer
- //~| NOTE calling non-const function `alloc::alloc::exchange_malloc`
+ //~| NOTE calling non-const function `Box::<i32>::new`
};