]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/rfc-1560-warning-cycle.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / imports / rfc-1560-warning-cycle.stderr
1 error[E0659]: `Foo` is ambiguous (glob import vs glob import in the same module)
2   --> $DIR/rfc-1560-warning-cycle.rs:9:17
3    |
4 LL |         fn f(_: Foo) {}
5    |                 ^^^ ambiguous name
6    |
7 note: `Foo` could refer to the struct imported here
8   --> $DIR/rfc-1560-warning-cycle.rs:7:13
9    |
10 LL |         use *;
11    |             ^
12    = help: consider adding an explicit import of `Foo` to disambiguate
13 note: `Foo` could also refer to the struct imported here
14   --> $DIR/rfc-1560-warning-cycle.rs:8:13
15    |
16 LL |         use bar::*;
17    |             ^^^^^^
18    = help: consider adding an explicit import of `Foo` to disambiguate
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0659`.