blob: 8d8f93db30ff87a1efd54d2d0d47c40ab0f366fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
The name chosen for an external crate conflicts with another external crate
that has been imported into the current module.
Erroneous code example:
```compile_fail,E0259
extern crate core;
extern crate std as core;
fn main() {}
```
The solution is to choose a different name that doesn't conflict with any
external crate imported into the current module.
Correct example:
```
extern crate core;
extern crate std as other_name;
fn main() {}
```
|