]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0259.md
Auto merge of #81451 - nikic:llvm-12, r=nagisa
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0259.md
1 The name chosen for an external crate conflicts with another external crate
2 that has been imported into the current module.
3
4 Erroneous code example:
5
6 ```compile_fail,E0259
7 extern crate core;
8 extern crate std as core;
9
10 fn main() {}
11 ```
12
13 The solution is to choose a different name that doesn't conflict with any
14 external crate imported into the current module.
15
16 Correct example:
17
18 ```
19 extern crate core;
20 extern crate std as other_name;
21
22 fn main() {}
23 ```