Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #11410 - TrAyZeN:master, r=epage
Suggest cargo add when installing library crate ### What does this PR try to resolve? When using `cargo install` instead of `cargo use` the error message is the following: ``` error: there is nothing to install in `foo v0.0.1`, because it has no binaries `cargo install` is only for installing programs, and can't be used with libraries. To use a library crate, add it as a dependency in a Cargo project instead. ``` It would be good to suggest to the user to use `cargo add`. ### How should we test and review this PR? The `no_binaries` test from `tests/testsuite/install.rs` covers that case.
- Loading branch information