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 c499fb26d68..2621820c222 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) -> String {
 }
 
 fn main() {
-    let x = X { x: "hello".to_strbuf() };
+    let x = X { x: "hello".to_string() };
     let y = unwrap(x);
     println!("contents: {}", y);
 }