2024-02-16 20:02:50 +00:00
|
|
|
//@ aux-build:two_macros.rs
|
2016-11-28 07:57:17 +00:00
|
|
|
|
|
|
|
extern crate two_macros;
|
|
|
|
|
|
|
|
mod foo {
|
|
|
|
pub mod bar {
|
|
|
|
pub use two_macros::m;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn f() {
|
2017-12-10 20:29:24 +00:00
|
|
|
use foo::*;
|
2016-11-28 07:57:17 +00:00
|
|
|
bar::m! { //~ ERROR ambiguous
|
2017-12-10 20:29:24 +00:00
|
|
|
mod bar { pub use two_macros::m; }
|
2016-11-28 07:57:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-10 20:29:24 +00:00
|
|
|
pub mod baz {
|
2016-11-28 07:57:17 +00:00
|
|
|
pub use two_macros::m;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn g() {
|
|
|
|
baz::m! { //~ ERROR ambiguous
|
2017-12-10 20:29:24 +00:00
|
|
|
mod baz { pub use two_macros::m; }
|
2016-11-28 07:57:17 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-12 20:21:43 +00:00
|
|
|
|
|
|
|
fn main() {}
|