Confusing error when adding optional dependency to [features] #10125
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
A-features
Area: features — conditional compilation
S-triage
Status: This issue is waiting on initial triage.
Anybody who does not know that optional dependencies implicitly define a feature of the same name might end up with a
Cargo.toml
file like the following:For this entirely reasonable human error Cargo however yields a completely confusing error message:
Reproduced with:
The text was updated successfully, but these errors were encountered: