diff --git a/test/heap.rs b/test/heap.rs index c97633c65698..05efc56f0f33 100755 --- a/test/heap.rs +++ b/test/heap.rs @@ -1,7 +1,12 @@ -#![feature(custom_attribute)] +#![feature(custom_attribute, box_syntax)] #![allow(dead_code, unused_attributes)] #[miri_run] -fn make_box() -> Box { - Box::new(42) +fn make_box() -> Box<(i16, i16)> { + Box::new((1, 2)) +} + +#[miri_run] +fn make_box_syntax() -> Box<(i16, i16)> { + box (1, 2) }