rust/tests/ui/imports/issue-45829/rename-extern-vs-use.rs
2024-02-16 20:02:50 +00:00

12 lines
179 B
Rust

//@ aux-build:issue-45829-b.rs
mod foo {
pub mod bar {}
}
use foo::bar;
extern crate issue_45829_b as bar;
//~^ ERROR the name `bar` is defined multiple times
fn main() {}