We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4863455 commit c337b99Copy full SHA for c337b99
src/doc/unstable-book/src/SUMMARY.md
@@ -113,6 +113,7 @@
113
- [loop_break_value](loop-break-value.md)
114
- [macro_reexport](macro-reexport.md)
115
- [main](main.md)
116
+- [manually_drop](manually-drop.md)
117
- [map_entry_recover_keys](map-entry-recover-keys.md)
118
- [mpsc_select](mpsc-select.md)
119
- [n16](n16.md)
src/doc/unstable-book/src/manually-drop.md
src/test/compile-fail/forget-init-unsafe.rs
@@ -10,10 +10,9 @@
10
11
#![feature(core_intrinsics)]
12
13
-use std::intrinsics::{init, forget};
+use std::intrinsics::{init};
14
15
// Test that the `forget` and `init` intrinsics are really unsafe
16
pub fn main() {
17
let stuff = init::<isize>(); //~ ERROR call to unsafe function requires unsafe
18
- forget(stuff); //~ ERROR call to unsafe function requires unsafe
19
}
0 commit comments