about summary refs log tree commit diff
path: root/tests/ui/walk-struct-literal-with.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/walk-struct-literal-with.rs')
-rw-r--r--tests/ui/walk-struct-literal-with.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/ui/walk-struct-literal-with.rs b/tests/ui/walk-struct-literal-with.rs
deleted file mode 100644
index ee1a77eb9a4..00000000000
--- a/tests/ui/walk-struct-literal-with.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-struct Mine{
-    test: String,
-    other_val: isize
-}
-
-impl Mine{
-    fn make_string_bar(mut self) -> Mine{
-        self.test = "Bar".to_string();
-        self
-    }
-}
-
-fn main(){
-    let start = Mine{test:"Foo".to_string(), other_val:0};
-    let end = Mine{other_val:1, ..start.make_string_bar()};
-    println!("{}", start.test); //~ ERROR borrow of moved value: `start`
-}