Skip to content

Commit 4bc789b

Browse files
committed
Add a regression test for #147971
(cherry picked from commit a81ed52)
1 parent 1dda761 commit 4bc789b

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)