1
Fork 0

Test the unstable box syntax.

This commit is contained in:
Scott Olson 2016-03-14 23:25:13 -06:00
parent 9d1d96ce07
commit 7eddb4e92a

View file

@ -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)
}