]> git.proxmox.com Git - rustc.git/blob - src/test/ui/resolve/resolve-conflict-type-vs-import.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / resolve / resolve-conflict-type-vs-import.stderr
1 error[E0255]: the name `Iter` is defined multiple times
2 --> $DIR/resolve-conflict-type-vs-import.rs:13:1
3 |
4 LL | use std::slice::Iter;
5 | ---------------- previous import of the type `Iter` here
6 LL |
7 LL | struct Iter;
8 | ^^^^^^^^^^^^ `Iter` redefined here
9 |
10 = note: `Iter` 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 std::slice::Iter as OtherIter;
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0255`.