]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/walk-struct-literal-with.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / walk-struct-literal-with.stderr
index 4384e345e85c72cbb24ed3e3e68e1f4e8c237fb7..2b85fa9bed480df4bf954d69decde3dfeeb292cf 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 takes ownership of the receiver `self`, which moves `start`
+note: `Mine::make_string_bar` 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{