unconfuse @eddyb
This commit is contained in:
parent
3dcdb8a83e
commit
d865adcf1e
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@ fn smoke() {
|
|||
drop(x);
|
||||
|
||||
// also test unsizing
|
||||
let x : Box<ManuallyDrop<[TypeWithDrop]>> = Box::new(ManuallyDrop::new([TypeWithDrop]));
|
||||
let x : Box<ManuallyDrop<[TypeWithDrop]>> =
|
||||
Box::new(ManuallyDrop::new([TypeWithDrop, TypeWithDrop]));
|
||||
drop(x);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue