From 7eddb4e92a71e3842cf8f5ca5edacd02e22bd1b1 Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Mon, 14 Mar 2016 23:25:13 -0600 Subject: [PATCH] Test the unstable box syntax. --- test/heap.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/heap.rs b/test/heap.rs index c97633c6569..05efc56f0f3 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) }