1 An item usage is ambiguous.
3 Erroneous code example:
5 ```compile_fail,edition2018,E0659
15 pub use crate::moon::*;
16 pub use crate::earth::*;
20 crate::collider::foo(); // ERROR: `foo` is ambiguous
24 This error generally appears when two items with the same name are imported into
25 a module. Here, the `foo` functions are imported and reexported from the
26 `collider` module and therefore, when we're using `collider::foo()`, both
29 To solve this error, the best solution is generally to keep the path before the
30 item when using it. Example:
47 crate::collider::moon::foo(); // ok!
48 crate::collider::earth::foo(); // ok!