rust/test/heap.rs
Scott Olson d3b47c418f WIP: Support array indexing including a get_unchecked test.
Required supporting:
  * Trait method lookup
  * The `offset` intrinsic
  * Fat pointers
  * Unsizing coercions and some raw pointer and integer casts
2016-03-16 23:28:49 -06:00

18 lines
295 B
Rust
Executable File

#![feature(custom_attribute, box_syntax)]
#![allow(dead_code, unused_attributes)]
#[miri_run]
fn make_box() -> Box<(i16, i16)> {
Box::new((1, 2))
}
#[miri_run]
fn make_box_syntax() -> Box<(i16, i16)> {
box (1, 2)
}
// #[miri_run]
// fn make_vec() -> Vec<i32> {
// Vec::new()
// }