]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / traits / associated_type_bound / check-trait-object-bounds-1.stderr
index 170ed6eacfd4174c43b4bbd86a909afe88662c1c..6333b4eb08cd530643b677e926567b01b31e009a 100644 (file)
@@ -1,11 +1,14 @@
 error[E0277]: the trait bound `str: Clone` is not satisfied
   --> $DIR/check-trait-object-bounds-1.rs:12:5
    |
-LL | fn f<T: X + ?Sized>() {
-   |         - required by this bound in `f`
-...
 LL |     f::<dyn X<Y = str>>();
    |     ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `str`
+   |
+note: required by a bound in `f`
+  --> $DIR/check-trait-object-bounds-1.rs:7:9
+   |
+LL | fn f<T: X + ?Sized>() {
+   |         ^ required by this bound in `f`
 
 error: aborting due to previous error