2022-06-26 03:19:32 -05:00
|
|
|
error[E0277]: the trait bound `B: Clone` is not satisfied
|
2023-01-12 12:51:09 -06:00
|
|
|
--> $DIR/issue-79224.rs:18:29
|
2022-06-26 03:19:32 -05:00
|
|
|
|
|
2023-01-07 20:40:59 -06:00
|
|
|
LL | impl<B: ?Sized> Display for Cow<'_, B> {
|
2023-01-12 12:51:09 -06:00
|
|
|
| ^^^^^^^^^^ the trait `Clone` is not implemented for `B`
|
2022-06-26 03:19:32 -05:00
|
|
|
|
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `B` to implement `ToOwned`
|
2022-06-26 03:19:32 -05:00
|
|
|
help: consider further restricting this bound
|
|
|
|
|
|
|
|
|
LL | impl<B: ?Sized + std::clone::Clone> Display for Cow<'_, B> {
|
|
|
|
| +++++++++++++++++++
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `B: Clone` is not satisfied
|
2023-01-07 21:14:27 -06:00
|
|
|
--> $DIR/issue-79224.rs:20:12
|
2022-06-26 03:19:32 -05:00
|
|
|
|
|
2023-01-07 21:14:27 -06:00
|
|
|
LL | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
| ^^^^^ the trait `Clone` is not implemented for `B`
|
2022-06-26 03:19:32 -05:00
|
|
|
|
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `B` to implement `ToOwned`
|
2022-06-26 03:19:32 -05:00
|
|
|
help: consider further restricting this bound
|
|
|
|
|
|
|
|
|
LL | impl<B: ?Sized + std::clone::Clone> Display for Cow<'_, B> {
|
|
|
|
| +++++++++++++++++++
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|