about summary refs log tree commit diff
path: root/src/libcore/tests
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-08-06 15:52:36 +0200
committerRalf Jung <post@ralfj.de>2018-08-06 15:52:36 +0200
commitd865adcf1eea0772be93a2b330073238b0803e17 (patch)
tree08061ca0bbdd996571b86735c2c603016342a7ef /src/libcore/tests
parent3dcdb8a83e953bfa033349e07c0f62b4230ea514 (diff)
downloadrust-d865adcf1eea0772be93a2b330073238b0803e17.tar.gz
rust-d865adcf1eea0772be93a2b330073238b0803e17.zip
unconfuse @eddyb
Diffstat (limited to 'src/libcore/tests')
-rw-r--r--src/libcore/tests/manually_drop.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/tests/manually_drop.rs b/src/libcore/tests/manually_drop.rs
index b8826ad4087..82dfb8d4c0b 100644
--- a/src/libcore/tests/manually_drop.rs
+++ b/src/libcore/tests/manually_drop.rs
@@ -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);
 }