diff options
Diffstat (limited to 'compiler/rustc_error_codes/src/error_codes/E0259.md')
-rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0259.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0259.md b/compiler/rustc_error_codes/src/error_codes/E0259.md new file mode 100644 index 000000000..8d8f93db3 --- /dev/null +++ b/compiler/rustc_error_codes/src/error_codes/E0259.md @@ -0,0 +1,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() {} +``` |