fixed another test.

This commit is contained in:
Felix S. Klock II 2013-09-20 03:15:21 +02:00
parent 9627e80ce5
commit 4e543f7a93
1 changed files with 2 additions and 2 deletions

View File

@ -21,6 +21,6 @@ impl Drop for A {
}
fn main() {
let a = A { y: Arc::new(1), x: Arc::new(2) };
let _b = A { y: Arc::new(3), ..a };
let _c = a; //~ ERROR use of moved value
let _b = A { y: Arc::new(3), ..a }; //~ ERROR cannot move out of type `A`
let _c = a;
}