fixed another test.
This commit is contained in:
parent
9627e80ce5
commit
4e543f7a93
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue