Skip to content

Commit 4e543f7

Browse files
committed
fixed another test.
1 parent 9627e80 commit 4e543f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/compile-fail/functional-struct-update-noncopyable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ impl Drop for A {
2121
}
2222
fn main() {
2323
let a = A { y: Arc::new(1), x: Arc::new(2) };
24-
let _b = A { y: Arc::new(3), ..a };
25-
let _c = a; //~ ERROR use of moved value
24+
let _b = A { y: Arc::new(3), ..a }; //~ ERROR cannot move out of type `A`
25+
let _c = a;
2626
}

0 commit comments

Comments
 (0)