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