Fix test failures
This commit is contained in:
parent
486345551c
commit
c337b99f4c
3 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
0
src/doc/unstable-book/src/manually-drop.md
Normal file
0
src/doc/unstable-book/src/manually-drop.md
Normal 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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue