提交 4e543f7a 编写于 作者: F Felix S. Klock II

fixed another test.

上级 9627e80c
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册