]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-unboxed-closures.stderr
Use structured suggestion when requiring `Copy` constraint in type param
[rust.git] / src / test / ui / borrowck / borrowck-unboxed-closures.stderr
index 40b8e3134847071719089eb4832add1796a23e5a..5a0afda013ee6970e7bdcd559ad58feb2f8380fc 100644 (file)
@@ -20,9 +20,9 @@ error[E0382]: use of moved value: `f`
   --> $DIR/borrowck-unboxed-closures.rs:12:5
    |
 LL | fn c<F:FnOnce(isize, isize) -> isize>(f: F) {
-   |      -                                - move occurs because `f` has type `F`, which does not implement the `Copy` trait
+   |      --                               - move occurs because `f` has type `F`, which does not implement the `Copy` trait
    |      |
-   |      consider adding a `Copy` constraint to this type argument
+   |      help: consider adding a `Copy` constraint to this type argument: `F: Copy +`
 LL |     f(1, 2);
    |     - value moved here
 LL |     f(1, 2);