Test the unstable box syntax.
This commit is contained in:
parent
9d1d96ce07
commit
7eddb4e92a
1 changed files with 8 additions and 3 deletions
11
test/heap.rs
11
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<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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue