fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `B: Clone` is not satisfied 2 --> $DIR/issue-79224.rs:18:29 3 | 4LL | impl<B: ?Sized> Display for Cow<'_, B> { 5 | ^^^^^^^^^^ the trait `Clone` is not implemented for `B` 6 | 7 = note: required for `B` to implement `ToOwned` 8help: consider further restricting this bound 9 | 10LL | impl<B: ?Sized + std::clone::Clone> Display for Cow<'_, B> { 11 | +++++++++++++++++++ 12 13error[E0277]: the trait bound `B: Clone` is not satisfied 14 --> $DIR/issue-79224.rs:20:13 15 | 16LL | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 17 | ^^^^ the trait `Clone` is not implemented for `B` 18 | 19 = note: required for `B` to implement `ToOwned` 20help: consider further restricting this bound 21 | 22LL | impl<B: ?Sized + std::clone::Clone> Display for Cow<'_, B> { 23 | +++++++++++++++++++ 24 25error: aborting due to 2 previous errors 26 27For more information about this error, try `rustc --explain E0277`.