]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / ui / traits / associated_type_bound / check-trait-object-bounds-1.stderr
1 error[E0277]: the trait bound `str: Clone` is not satisfied
2   --> $DIR/check-trait-object-bounds-1.rs:12:5
3    |
4 LL |     f::<dyn X<Y = str>>();
5    |     ^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `str`
6    |
7 note: required by a bound in `f`
8   --> $DIR/check-trait-object-bounds-1.rs:7:9
9    |
10 LL | fn f<T: X + ?Sized>() {
11    |         ^ required by this bound in `f`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.