Skip to content

Commit 0845579

Browse files
committed
test: Fix unused variable warning in repeat-to-run-dtor-twice.rs.
Hopefully puts out burning tinderbox.
1 parent 6b1a9af commit 0845579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/compile-fail/repeat-to-run-dtor-twice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ struct Foo {
1111

1212
fn main() {
1313
let a = Foo { x: 3 };
14-
let b = [ a, ..5 ]; //~ ERROR copying a noncopyable value
14+
let _ = [ a, ..5 ]; //~ ERROR copying a noncopyable value
1515
}
1616

0 commit comments

Comments
 (0)