From 0845579130e91f31e58d5453d87a6e4afa0cfacf Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 17 Aug 2012 17:11:25 -0700 Subject: [PATCH] test: Fix unused variable warning in repeat-to-run-dtor-twice.rs. Hopefully puts out burning tinderbox. --- src/test/compile-fail/repeat-to-run-dtor-twice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/compile-fail/repeat-to-run-dtor-twice.rs b/src/test/compile-fail/repeat-to-run-dtor-twice.rs index a96293998d2..fbfd6e65cb3 100644 --- a/src/test/compile-fail/repeat-to-run-dtor-twice.rs +++ b/src/test/compile-fail/repeat-to-run-dtor-twice.rs @@ -11,6 +11,6 @@ struct Foo { fn main() { let a = Foo { x: 3 }; - let b = [ a, ..5 ]; //~ ERROR copying a noncopyable value + let _ = [ a, ..5 ]; //~ ERROR copying a noncopyable value }