diff options
Diffstat (limited to 'src/test/compile-fail/disallowed-deconstructing-destructing-struct-match.rs')
| -rw-r--r-- | src/test/compile-fail/disallowed-deconstructing-destructing-struct-match.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/disallowed-deconstructing-destructing-struct-match.rs b/src/test/compile-fail/disallowed-deconstructing-destructing-struct-match.rs index ecb02c4307d..e14900c4bb4 100644 --- a/src/test/compile-fail/disallowed-deconstructing-destructing-struct-match.rs +++ b/src/test/compile-fail/disallowed-deconstructing-destructing-struct-match.rs @@ -14,7 +14,7 @@ struct X { impl Drop for X { fn drop(&mut self) { - error!("value: %s", self.x); + error2!("value: {}", self.x); } } @@ -22,7 +22,7 @@ fn main() { let x = X { x: ~"hello" }; match x { - X { x: y } => error!("contents: %s", y) + X { x: y } => error2!("contents: {}", y) //~^ ERROR cannot move out of type `X`, which defines the `Drop` trait } } |
