Add a regression test for rust-lang/rust#147971
(cherry picked from commit a81ed52f58)
This commit is contained in:
parent
1dda76181e
commit
4bc789b5b1
1 changed files with 17 additions and 0 deletions
17
library/std/tests/ambiguous-hash_map.rs
Normal file
17
library/std/tests/ambiguous-hash_map.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
//! Make sure that a `std` macro `hash_map!` does not cause ambiguity
|
||||
//! with a local glob import with the same name.
|
||||
//!
|
||||
//! See regression https://github.com/rust-lang/rust/issues/147971
|
||||
|
||||
mod module {
|
||||
macro_rules! hash_map {
|
||||
() => {};
|
||||
}
|
||||
pub(crate) use hash_map;
|
||||
}
|
||||
|
||||
use module::*;
|
||||
|
||||
fn main() {
|
||||
hash_map! {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue