Skip to content

Instantly share code, notes, and snippets.

@Gisleburt
Last active June 10, 2019 12:16
Show Gist options
  • Save Gisleburt/396203ff8ed372c8dcccace712dfcab9 to your computer and use it in GitHub Desktop.
Save Gisleburt/396203ff8ed372c8dcccace712dfcab9 to your computer and use it in GitHub Desktop.
$ cargo run --bin display-and-vectors
Compiling impl-vec v0.1.0 (/Users/danielmason/projects/Apolitical/impl-vec)
error[E0277]: `std::vec::Vec<Album>` doesn't implement `std::fmt::Display`
--> src/bin/display-and-vectors.rs:26:20
|
26 | println!("{}", albums);
| ^^^^^^ `std::vec::Vec<Album>` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `std::vec::Vec<Album>`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
= note: required by `std::fmt::Display::fmt`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment