Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
ices/79224.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `79224`
  --> /home/runner/work/glacier/glacier/ices/79224.rs:23:2
   |
23 | }
   |  ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/79224.rs`

error[E0277]: the trait bound `B: Clone` is not satisfied
  --> /home/runner/work/glacier/glacier/ices/79224.rs:19:17
   |
19 | impl<B: ?Sized> Display for Cow<'_, B> {
   |                 ^^^^^^^ the trait `Clone` is not implemented for `B`
   |
   = note: required because of the requirements on the impl of `ToOwned` for `B`
help: consider further restricting this bound
   |
19 | impl<B: ?Sized + std::clone::Clone> Display for Cow<'_, B> {
   |                +++++++++++++++++++

error[E0277]: the trait bound `B: Clone` is not satisfied
  --> /home/runner/work/glacier/glacier/ices/79224.rs:20:5
   |
20 | /     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
21 | |         panic!()
22 | |     }
   | |_____^ the trait `Clone` is not implemented for `B`
   |
   = note: required because of the requirements on the impl of `ToOwned` for `B`
help: consider further restricting this bound
   |
19 | impl<B: ?Sized + std::clone::Clone> Display for Cow<'_, B> {
   |                +++++++++++++++++++

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0277, E0601.
For more information about an error, try `rustc --explain E0277`.
==============
  • Loading branch information
rustbot committed Mar 9, 2022
1 parent 92427c0 commit c1499e8
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit c1499e8

Please sign in to comment.