]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/nll/issue-52059-report-when-borrow-and-drop-conflict.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / nll / issue-52059-report-when-borrow-and-drop-conflict.stderr
index 34259d06d38363e43ff342595f8956e65d5974b4..ce48457abe7ec754a06ca7e68a4b780cc1f92b91 100644 (file)
@@ -35,6 +35,7 @@ LL |     let p = s.url; p
    |             ^^^^^
    |             |
    |             cannot move out of here
+   |             move occurs because `s.url` has type `&mut std::string::String`, which does not implement the `Copy` trait
    |             help: consider borrowing here: `&s.url`
 
 error: aborting due to 4 previous errors