blob: b2b5f6bfc98f43a2e0536eb58ee9d29b2077512c [file] [log] [blame]
// { dg-options "-frust-compile-until=lowering" }
pub mod foo {
pub mod bar {
pub mod baz {
pub mod qux {
#[macro_export]
macro_rules! foo {
(one) => {};
}
pub fn foo() {}
}
}
fn f() {
fn inner() {
macro_rules! foo {
(two) => {};
}
foo!(two); // ok, textual scope
crate::foo!(one); // ok, path res
super::super::foo!(one); // ok, path res
}
}
}
}