]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/walk-struct-literal-with.stderr
Rollup merge of #80935 - pierwill:rustc_middle-levelandsource, r=petrochenkov
[rust.git] / src / test / ui / walk-struct-literal-with.stderr
index ece63a2b8194745d2be6b0b7b9f66aeef1a986c3..cda08b0f4e09cc6c1404a2389535e1b39f83c42e 100644 (file)
@@ -8,7 +8,7 @@ LL |     let end = Mine{other_val:1, ..start.make_string_bar()};
 LL |     println!("{}", start.test);
    |                    ^^^^^^^^^^ value borrowed here after move
    |
-note: this function consumes the receiver `self` by taking ownership of it, which moves `start`
+note: this function takes ownership of the receiver `self`, which moves `start`
   --> $DIR/walk-struct-literal-with.rs:7:28
    |
 LL |     fn make_string_bar(mut self) -> Mine{