Skip to content

Commit 8e9fd57

Browse files
committed
1 parent d9f2f2c commit 8e9fd57

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/21599.rs

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#![no_std]
2+
#![feature(box_syntax,unique)]
3+
#![feature(no_std,lang_items)]
4+
5+
use core::ptr::Unique;
6+
7+
#[lang="owned_box"]
8+
pub struct Box<T>(Unique<T>);
9+
10+
#[lang="start"]
11+
fn main() {
12+
let mut test:[isize;1] = [0;1];
13+
let a = box 5;
14+
test[*a] = 0;
15+
}
16+
17+
#[lang = "exchange_malloc"] extern fn exchange_malloc() {}
18+
#[lang = "eh_personality"] extern fn eh_personality() {}
19+
#[lang = "panic_fmt"] fn panic_fmt() -> ! { loop{} }

0 commit comments

Comments
 (0)