blob: cf16c594fa40b0eecb5e92c3bf022d7126380795 [file] [edit]
// Tests that namespaced crates cannot be resolved if shadowed.
//@ aux-crate: my_api=open-ns-my_api.rs
//@ aux-crate: my_api::utils=open-ns-my_api_utils.rs
//@ compile-flags: -Z namespaced-crates
//@ edition: 2024
use my_api::utils::utils_helper;
//~^ ERROR unresolved import `my_api::utils` [E0432]
fn main() {
let _ = my_api::utils::utils_helper();
//~^ ERROR cannot find `utils` in `my_api` [E0433]
}