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