We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6501e64 commit a81ed52Copy full SHA for a81ed52
library/std/tests/ambiguous-hash_map.rs
@@ -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