blob: a033b51f709706dabee3be4b915e31ffd606de8d [file] [log] [blame]
//@ check-pass
// https://github.com/rust-lang/rust/pull/113099#issuecomment-1637022296
macro_rules! m {
() => {
pub fn b() {}
};
}
pub mod ciphertext {
m!();
}
pub mod public {
use crate::ciphertext::*;
m!();
}
use crate::ciphertext::*;
use crate::public::*;
fn main() {
b();
//~^ WARNING `b` is ambiguous
//~| WARNING this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
}