diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-09-20 03:15:21 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-09-20 03:15:21 +0200 |
| commit | 4e543f7a935b58bdb343980543db173e26b5e31a (patch) | |
| tree | bdb0de97ba3c54095d33eae31669af47cca0b15e | |
| parent | 9627e80ce5f8f7637137647410dcf9cf7b0147c6 (diff) | |
| download | rust-4e543f7a935b58bdb343980543db173e26b5e31a.tar.gz rust-4e543f7a935b58bdb343980543db173e26b5e31a.zip | |
fixed another test.
| -rw-r--r-- | src/test/compile-fail/functional-struct-update-noncopyable.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/functional-struct-update-noncopyable.rs b/src/test/compile-fail/functional-struct-update-noncopyable.rs index 02db7895195..7fccdba1723 100644 --- a/src/test/compile-fail/functional-struct-update-noncopyable.rs +++ b/src/test/compile-fail/functional-struct-update-noncopyable.rs @@ -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; } |
