]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / traits / associated_type_bound / check-trait-object-bounds-1.stderr
CommitLineData
29967ef6 1error[E0277]: the trait bound `str: Clone` is not satisfied
f2b60f7d 2 --> $DIR/check-trait-object-bounds-1.rs:12:9
29967ef6 3 |
29967ef6 4LL | 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
8note: required by a bound in `f`
9 --> $DIR/check-trait-object-bounds-1.rs:7:9
10 |
11LL | fn f<T: X + ?Sized>() {
12 | ^ required by this bound in `f`
29967ef6
XL
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0277`.