]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/closures/issue-67123.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / closures / issue-67123.stderr
index f14478d7278cd4773a44f943309217585f26463f..5a6dfb2fdf946fdfe7ed7a235f242731e08513e0 100644 (file)
@@ -6,12 +6,11 @@ LL |     || { t; t; };
    |          |
    |          value moved here
    |
-help: consider restricting this type parameter with `T: Copy`
-  --> $DIR/issue-67123.rs:1:8
-   |
-LL | fn foo<T>(t: T) {
-   |        ^
    = note: move occurs because `t` has type `T`, which does not implement the `Copy` trait
+help: consider restricting type parameter `T`
+   |
+LL | fn foo<T: Copy>(t: T) {
+   |         ^^^^^^
 
 error: aborting due to previous error