You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mattheww opened this issue
Oct 18, 2019
· 1 comment
· Fixed by #65691
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-resolveArea: Name/path resolution done by `rustc_resolve` specifically
pub mod moon {
pub fn foo() {}
}
pub mod earth {
pub fn foo() {}
}
mod collider {
pub use moon::*;
pub use earth::*;
}
fn main() {
collider::foo(); // ERROR: `foo` is ambiguous
}
which needs updating for Rust 2018: it needs crate:: or parent:: adding inside mod collider.
The same is true in the recommended replacement.
The text was updated successfully, but these errors were encountered:
jonas-schievink
added
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
labels
Oct 18, 2019
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-resolveArea: Name/path resolution done by `rustc_resolve` specifically
See E0659 for the current text.
It includes the following example:
which needs updating for Rust 2018: it needs
crate::
orparent::
adding insidemod collider
.The same is true in the recommended replacement.
The text was updated successfully, but these errors were encountered: