Skip to content

Commit 016b109

Browse files
committed
---
yaml --- r: 60171 b: refs/heads/master c: ca18ed8 h: refs/heads/master i: 60169: d46131c 60167: 0f98b83 v: v3
1 parent c56bbc9 commit 016b109

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: cd235d423008ce9a35d0d5f3a7e35a91b8c3033b
2+
refs/heads/master: ca18ed8f64daa12138352541f7d8ccfc593b2970
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2d28d645422c1617be58c8ca7ad9a457264ca850
55
refs/heads/try: c50a9d5b664478e533ba1d1d353213d70c8ad589
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
use core::unstable::intrinsics::{init, forget};
12+
13+
// Test that the `forget` and `init` intrinsics are really unsafe
14+
pub fn main() {
15+
let stuff = init::<int>(); //~ ERROR access to unsafe function requires unsafe
16+
forget(stuff); //~ ERROR access to unsafe function requires unsafe
17+
}

0 commit comments

Comments
 (0)