mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
13 lines
353 B
Rust
13 lines
353 B
Rust
// 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]
|
|
}
|