]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0523.md
Rollup merge of #107700 - jyn514:tools-builder, r=Mark-Simulacrum
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0523.md
1 #### Note: this error code is no longer emitted by the compiler.
2
3 The compiler found multiple library files with the requested crate name.
4
5 ```compile_fail
6 // aux-build:crateresolve-1.rs
7 // aux-build:crateresolve-2.rs
8 // aux-build:crateresolve-3.rs
9
10 extern crate crateresolve;
11 //~^ ERROR multiple candidates for `rlib` dependency `crateresolve` found
12
13 fn main() {}
14 ```
15
16 This error can occur in several different cases -- for example, when using
17 `extern crate` or passing `--extern` options without crate paths. It can also be
18 caused by caching issues with the build directory, in which case `cargo clean`
19 may help.
20
21 In the above example, there are three different library files, all of which
22 define the same crate name. Without providing a full path, there is no way for
23 the compiler to know which crate it should use.
24
25 *Note that E0523 has been merged into E0464.*