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 }