diff options
| author | Ralf Jung <post@ralfj.de> | 2018-08-06 15:52:36 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-08-06 15:52:36 +0200 |
| commit | d865adcf1eea0772be93a2b330073238b0803e17 (patch) | |
| tree | 08061ca0bbdd996571b86735c2c603016342a7ef /src/libcore/tests | |
| parent | 3dcdb8a83e953bfa033349e07c0f62b4230ea514 (diff) | |
| download | rust-d865adcf1eea0772be93a2b330073238b0803e17.tar.gz rust-d865adcf1eea0772be93a2b330073238b0803e17.zip | |
unconfuse @eddyb
Diffstat (limited to 'src/libcore/tests')
| -rw-r--r-- | src/libcore/tests/manually_drop.rs | 3 |
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); } |
