about summary refs log tree commit diff
path: root/src/test/ui/repeat-expr/repeat-to-run-dtor-twice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/repeat-expr/repeat-to-run-dtor-twice.rs')
-rw-r--r--src/test/ui/repeat-expr/repeat-to-run-dtor-twice.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/ui/repeat-expr/repeat-to-run-dtor-twice.rs b/src/test/ui/repeat-expr/repeat-to-run-dtor-twice.rs
deleted file mode 100644
index 0cd8eceefc5..00000000000
--- a/src/test/ui/repeat-expr/repeat-to-run-dtor-twice.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Tests that one can't run a destructor twice with the repeated vector
-// literal syntax.
-
-struct Foo {
-    x: isize,
-
-}
-
-impl Drop for Foo {
-    fn drop(&mut self) {
-        println!("Goodbye!");
-    }
-}
-
-fn main() {
-    let a = Foo { x: 3 };
-    let _ = [ a; 5 ];
-    //~^ ERROR the trait bound `Foo: Copy` is not satisfied [E0277]
-}