This commit is contained in:
Ralf Jung 2020-10-29 20:57:38 +01:00
parent c3a84c1ca8
commit 1ad827c511
3 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
17cc9b6256c95c31944591aec683884fead4e3b6
a53fb30e3bf2655b0563da6d561c23cda5f3ec11

View File

@ -21,7 +21,7 @@ fn into_raw() { unsafe {
fn into_unique() { unsafe {
let b = Box::new(4i32);
let u = Box::into_unique(b);
let u = Box::into_unique(b).0;
// "lose the tag"
let r = ((u.as_ptr() as usize)+0) as *mut i32;

View File

@ -1,4 +1,5 @@
#![feature(unsized_locals)]
#![feature(unsized_locals, unsized_fn_params)]
#![allow(incomplete_features)]
fn ref_box_dyn() {
struct Struct(i32);