]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0259.md
Spell check librustc_error_codes
[rust.git] / src / librustc_error_codes / 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 ```