]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0256.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0256.md
1 #### Note: this error code is no longer emitted by the compiler.
2
3 You can't import a type or module when the name of the item being imported is
4 the same as another type or submodule defined in the module.
5
6 An example of this error:
7
8 ```compile_fail
9 use foo::Bar; // error
10
11 type Bar = u32;
12
13 mod foo {
14     pub mod Bar { }
15 }
16
17 fn main() {}
18 ```