You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/lib.rs:75:6: 75:7 error: the type parameter `T` is not constrained by the impl trait, self type, or predicates [E0207]
src/lib.rs:75 impl<T> ProcessedDocument for HashMap<String, usize> where T : PartialEq {
^
src/lib.rs:75:6: 75:7 help: run `rustc --explain E0207` to see a detailed explanation
error: aborting due to previous error
Any ideas?
The text was updated successfully, but these errors were encountered:
Thanks for using my library! The issue is you actually don't need the T type parameter in the declaration of the implementation, since your HashMap isn't using it.
Here is a generic version of what you're trying to do (compiles in rustc 1.8.0-nightly):
It would probably be useful to have a default implementation of
Document
andProcessedDocument
forHashMap<String, usize>
.I did a first attempt, but somehow can't get it to compile:
The error message I'm getting:
Any ideas?
The text was updated successfully, but these errors were encountered: