]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/wf/wf-in-fn-type-ret.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / wf / wf-in-fn-type-ret.stderr
index 527b000edf8832fe59aea881e1c89c93faa88e20..e203058250790776ea76103ab6bb71afdaaec627 100644 (file)
@@ -2,16 +2,15 @@ error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied
   --> $DIR/wf-in-fn-type-ret.rs:9:5
    |
 LL | struct MustBeCopy<T:Copy> {
-   | ------------------------- required by `MustBeCopy`
+   |                     ---- required by this bound in `MustBeCopy`
 ...
 LL |     x: fn() -> MustBeCopy<T>
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `T`
    |
-help: consider restricting this type parameter with `T: std::marker::Copy`
-  --> $DIR/wf-in-fn-type-ret.rs:7:12
+help: consider restricting type parameter `T`
    |
-LL | struct Foo<T> {
-   |            ^
+LL | struct Foo<T: std::marker::Copy> {
+   |             ^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to previous error