-
-
Save Gisleburt/396203ff8ed372c8dcccace712dfcab9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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