Skip to content

Commit dfbc2c5

Browse files
committed
Add a regression test for #147971
1 parent 6501e64 commit dfbc2c5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/// Make sure that a `std` macro `hash_map!` does not cause ambiguity
2+
/// with a local glob import with the same name.
3+
///
4+
/// See regression https://github.com/rust-lang/rust/issues/147971
5+
6+
mod module {
7+
macro_rules! hash_map {
8+
() => {}
9+
}
10+
pub(crate) use hash_map;
11+
}
12+
13+
use module::*;
14+
15+
fn main() {
16+
hash_map! {}
17+
}

0 commit comments

Comments
 (0)