summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-45829/rename-extern-vs-use.rs
blob: aef7aa35cf5a363b4ac28ff34d0ba419fe7a43e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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() {}