]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0251.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0251.md
1 #### Note: this error code is no longer emitted by the compiler.
2
3 Two items of the same name cannot be imported without rebinding one of the
4 items under a new local name.
5
6 An example of this error:
7
8 ```
9 use foo::baz;
10 use bar::*; // error, do `use foo::baz as quux` instead on the previous line
11
12 fn main() {}
13
14 mod foo {
15     pub struct baz;
16 }
17
18 mod bar {
19     pub mod baz {}
20 }
21 ```