2023-03-19 10:46:19 +00:00
|
|
|
// Check that we do not ICE due to unresolved segments in visibility path.
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
|
|
extern crate alloc as b;
|
|
|
|
|
|
|
|
|
|
mod foo {
|
|
|
|
|
mod bar {
|
2025-06-05 08:42:30 +02:00
|
|
|
pub(in crate::b::string::String::newy) extern crate alloc as e;
|
2023-03-19 10:46:19 +00:00
|
|
|
//~^ ERROR failed to resolve: `String` is a struct, not a module [E0433]
|
|
|
|
|
}
|
|
|
|
|
}
|