]> git.lizzy.rs Git - rust.git/commitdiff
Test the unstable box syntax.
authorScott Olson <scott@solson.me>
Tue, 15 Mar 2016 05:25:13 +0000 (23:25 -0600)
committerScott Olson <scott@solson.me>
Tue, 15 Mar 2016 05:25:13 +0000 (23:25 -0600)
test/heap.rs

index c97633c656981cbf44ff49b579843c531bcdc516..05efc56f0f33e2a74e473e9118d41083e478f414 100755 (executable)
@@ -1,7 +1,12 @@
-#![feature(custom_attribute)]
+#![feature(custom_attribute, box_syntax)]
 #![allow(dead_code, unused_attributes)]
 
 #[miri_run]
-fn make_box() -> Box<i32> {
-    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)
 }