]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/access-mode-in-closures.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / access-mode-in-closures.stderr
index 424d7ebb37444a49120f747197782a8df2e68534..349e3f4a836a0bbf5cf1bb67a7f9072333590cb4 100644 (file)
@@ -6,7 +6,7 @@ LL |         match *s { S(v) => v }
    |               |      |
    |               |      data moved here
    |               |      move occurs because `v` has type `std::vec::Vec<isize>`, which does not implement the `Copy` trait
-   |               help: consider removing the `*`: `s`
+   |               help: consider borrowing here: `&*s`
 
 error: aborting due to previous error