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