about summary refs log tree commit diff
path: root/src/test/compile-fail/disallowed-deconstructing-destructing-struct-let.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/disallowed-deconstructing-destructing-struct-let.rs')
-rw-r--r--src/test/compile-fail/disallowed-deconstructing-destructing-struct-let.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/disallowed-deconstructing-destructing-struct-let.rs b/src/test/compile-fail/disallowed-deconstructing-destructing-struct-let.rs
index af543b8d782..40bb63907c9 100644
--- a/src/test/compile-fail/disallowed-deconstructing-destructing-struct-let.rs
+++ b/src/test/compile-fail/disallowed-deconstructing-destructing-struct-let.rs
@@ -24,7 +24,7 @@ fn unwrap(x: X) -> ~str {
 }
 
 fn main() {
-    let x = X { x: ~"hello" };
+    let x = X { x: "hello".to_owned() };
     let y = unwrap(x);
     println!("contents: {}", y);
 }