]> git.lizzy.rs Git - rust.git/blob - tests/ui/blind/blind-item-item-shadow.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / blind / blind-item-item-shadow.stderr
1 error[E0255]: the name `foo` is defined multiple times
2   --> $DIR/blind-item-item-shadow.rs:3:5
3    |
4 LL | mod foo { pub mod foo {  } }
5    | ------- previous definition of the module `foo` here
6 LL |
7 LL | use foo::foo;
8    |     ^^^^^^^^ `foo` reimported here
9    |
10    = note: `foo` must be defined only once in the type namespace of this module
11 help: you can use `as` to change the binding name of the import
12    |
13 LL | use foo::foo as other_foo;
14    |     ~~~~~~~~~~~~~~~~~~~~~
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0255`.