1 The current crate is indistinguishable from one of its dependencies, in terms
4 Example of erroneous code:
7 ```ignore (cannot-link-with-other-tests)
15 ```ignore (cannot-link-with-other-tests)
17 #![crate_type = "lib"]
19 // error: the current crate is indistinguishable from one of its dependencies:
20 // it has the same crate-name `a` and was compiled with the same
21 // `-C metadata` arguments. This will result in symbol conflicts between
28 a::foo(); // is this calling the local crate or the dependency?
32 The above example compiles two crates with exactly the same name and
33 `crate_type` (plus any other metadata). This causes an error because it becomes
34 impossible for the compiler to distinguish between symbols (`pub` item names).
36 This error can be fixed by:
37 * Using [Cargo](../cargo/index.html), the Rust package manager, automatically
39 * Recompiling the crate with different metadata (different name/