mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
Test the unstable box syntax.
This commit is contained in:
+8
-3
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user