blob: 4db3ad4c80a1d2f447b992399c83fcb1d85f9f98 [file]
// This tests that namespaced crates are 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
fn main() {
let _ = my_api::root_function();
let _ = my_api::utils::utils_helper();
//~^ ERROR cannot find `utils` in `my_api` [E0433]
}