I wrote this simplified snippet of what I would like to do and I don't understand why the compile time error
error[E0277]: the trait bound `Tag: std::convert::From<&T>` is not satisfied
--> src/main.rs:58:25
|
58 | tags.iter().map(|t| Tag::from(t)).collect()
| ^^^^^^^^^ the trait `std::convert::From<&T>` is not implemented for `Tag`
|
= note: required by `std::convert::From::from`
is thrown when clearly From
is implemented for both PostTag
and EventTag
.
Can anybody please give me some advice?