]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-21837.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-21837.stderr
index 50fdf2d6185be93f30e276adb11f6f8ee27a01d6..cfc294b5fa2d78bd835ab9bff2368e7f08d660dd 100644 (file)
@@ -5,9 +5,13 @@ LL | pub struct Foo<T: Bound>(T);
    | ---------------------------- required by `Foo`
 ...
 LL | impl<T> Trait2 for Foo<T> {}
-   |      -  ^^^^^^ the trait `Bound` is not implemented for `T`
-   |      |
-   |      help: consider restricting this bound: `T: Bound`
+   |         ^^^^^^ the trait `Bound` is not implemented for `T`
+   |
+help: consider restricting this type parameter with `T: Bound`
+  --> $DIR/issue-21837.rs:8:6
+   |
+LL | impl<T> Trait2 for Foo<T> {}
+   |      ^
 
 error: aborting due to previous error