]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/walk-struct-literal-with.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / walk-struct-literal-with.rs
index 10503084b9d9fc1d39e1ddefd84608d43bf42490..ee1a77eb9a48afdcecde87a599d364db365b22b2 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 struct Mine{
     test: String,
     other_val: isize
@@ -23,5 +13,5 @@ fn make_string_bar(mut self) -> Mine{
 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 use of moved value: `start.test`
+    println!("{}", start.test); //~ ERROR borrow of moved value: `start`
 }