Open
Description
mod parent {
mod this {
pub(in super::sibling) fn foo() {}
}
mod sibling {
fn bar() {
super::this::foo();
}
}
}
results in
error[E0433]: failed to resolve: could not find `sibling` in `super`
--> src/lib.rs:3:23
|
3 | pub(in super::sibling) fn foo() {}
| ^^^^^^^ could not find `sibling` in `super`
this error feels very weird 🤔
I see the following possible fixes here:
- this is a bug with name resolution and should compile
- the
in super::sibling
error should be changed to explain what's going on here and why that doesn't work
found via #109511 (comment)
cc @petrochenkov in case you know more about what's going on here.