]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0252.stderr
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / E0252.stderr
1 error[E0252]: the name `baz` is defined multiple times
2   --> $DIR/E0252.rs:4:5
3    |
4 LL | use foo::baz;
5    |     -------- previous import of the type `baz` here
6 LL | use bar::baz;
7    |     ^^^^^^^^ `baz` reimported here
8    |
9    = note: `baz` must be defined only once in the type namespace of this module
10 help: you can use `as` to change the binding name of the import
11    |
12 LL | use bar::baz as other_baz;
13    |     ~~~~~~~~~~~~~~~~~~~~~
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0252`.