Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Apr 9, 2017
1 parent 4863455 commit c337b99
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/doc/unstable-book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Empty file.
3 changes: 1 addition & 2 deletions src/test/compile-fail/forget-init-unsafe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit c337b99

Please sign in to comment.