Skip to content

Instantly share code, notes, and snippets.

@Gisleburt
Last active June 10, 2019 12:17
Show Gist options
  • Save Gisleburt/e2ff74ea23a3adcc04f89ecd39d776a8 to your computer and use it in GitHub Desktop.
Save Gisleburt/e2ff74ea23a3adcc04f89ecd39d776a8 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[E0117]: only traits defined in the current crate can be implemented for arbitrary types
--> src/bin/display-and-vectors.rs:14:1
|
14 | impl fmt::Display for Vec<Album> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
|
= note: the impl does not reference only types defined in this crate
= note: define and implement a trait or new type instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment