Error code E0404
A type that is not a trait was used in a trait position, such as a bound
or impl
.
Erroneous code example:
ⓘ
Another erroneous code example:
ⓘ
Please verify that the trait's name was not misspelled or that the right identifier was used. Example:
Alternatively, you could introduce a new trait with your desired restrictions as a super trait:
Finally, if you are on nightly and want to use a trait alias
instead of a type alias, you should use #![feature(trait_alias)]
: