about summary refs log tree commit diff
path: root/src/test/ui/dropck/drop-on-non-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/dropck/drop-on-non-struct.rs')
-rw-r--r--src/test/ui/dropck/drop-on-non-struct.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/dropck/drop-on-non-struct.rs b/src/test/ui/dropck/drop-on-non-struct.rs
deleted file mode 100644
index 145eab126c2..00000000000
--- a/src/test/ui/dropck/drop-on-non-struct.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-impl<'a> Drop for &'a mut isize {
-    //~^ ERROR the `Drop` trait may only be implemented for local structs, enums, and unions
-    //~^^ ERROR E0117
-    fn drop(&mut self) {
-        println!("kaboom");
-    }
-}
-
-impl Drop for Nonexistent {
-    //~^ ERROR cannot find type `Nonexistent`
-    fn drop(&mut self) {}
-}
-
-fn main() {}