Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit ddd2edb

Browse files
committed
Merge pull request #61 from wheals/21599
21599
2 parents 7fb5ef7 + 8e9fd57 commit ddd2edb

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)