]>
Commit | Line | Data |
---|---|---|
29967ef6 | 1 | error[E0277]: the trait bound `str: Clone` is not satisfied |
f2b60f7d | 2 | --> $DIR/check-trait-object-bounds-1.rs:12:9 |
29967ef6 | 3 | | |
29967ef6 | 4 | LL | f::<dyn X<Y = str>>(); |
f2b60f7d | 5 | | ^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `str` |
94222f64 | 6 | | |
04454e1e | 7 | = help: the trait `Clone` is implemented for `String` |
94222f64 XL |
8 | note: required by a bound in `f` |
9 | --> $DIR/check-trait-object-bounds-1.rs:7:9 | |
10 | | | |
11 | LL | fn f<T: X + ?Sized>() { | |
12 | | ^ required by this bound in `f` | |
29967ef6 XL |
13 | |
14 | error: aborting due to previous error | |
15 | ||
16 | For more information about this error, try `rustc --explain E0277`. |