Fix test failures

This commit is contained in:
Simonas Kazlauskas 2017-04-02 11:16:17 +03:00
parent 486345551c
commit c337b99f4c
3 changed files with 2 additions and 2 deletions

View file

@ -113,6 +113,7 @@
- [loop_break_value](loop-break-value.md)
- [macro_reexport](macro-reexport.md)
- [main](main.md)
- [manually_drop](manually-drop.md)
- [map_entry_recover_keys](map-entry-recover-keys.md)
- [mpsc_select](mpsc-select.md)
- [n16](n16.md)

View file

@ -10,10 +10,9 @@
#![feature(core_intrinsics)]
use std::intrinsics::{init, forget};
use std::intrinsics::{init};
// Test that the `forget` and `init` intrinsics are really unsafe
pub fn main() {
let stuff = init::<isize>(); //~ ERROR call to unsafe function requires unsafe
forget(stuff); //~ ERROR call to unsafe function requires unsafe
}