about summary refs log tree commit diff
path: root/src/libcore/tests/manually_drop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/tests/manually_drop.rs')
-rw-r--r--src/libcore/tests/manually_drop.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/libcore/tests/manually_drop.rs b/src/libcore/tests/manually_drop.rs
deleted file mode 100644
index 77a338daf7d..00000000000
--- a/src/libcore/tests/manually_drop.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-use core::mem::ManuallyDrop;
-
-#[test]
-fn smoke() {
-    struct TypeWithDrop;
-    impl Drop for TypeWithDrop {
-        fn drop(&mut self) {
-            unreachable!("Should not get dropped");
-        }
-    }
-
-    let x = ManuallyDrop::new(TypeWithDrop);
-    drop(x);
-
-    // also test unsizing
-    let x: Box<ManuallyDrop<[TypeWithDrop]>> =
-        Box::new(ManuallyDrop::new([TypeWithDrop, TypeWithDrop]));
-    drop(x);
-}