about summary refs log tree commit diff
path: root/src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs')
-rw-r--r--src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs b/src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs
index 9019d338d09..fa34c056794 100644
--- a/src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs
+++ b/src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs
@@ -18,7 +18,7 @@ impl Drop for X {
     }
 }
 
-fn unwrap(+x: X) -> ~str {
+fn unwrap(x: X) -> ~str {
     let X { x: y } = x; //~ ERROR deconstructing struct not allowed in pattern
     y
 }