2016-11-28 01:57:17 -06:00
|
|
|
// aux-build:two_macros.rs
|
|
|
|
|
|
|
|
extern crate two_macros;
|
|
|
|
|
|
|
|
mod foo {
|
|
|
|
pub mod bar {
|
|
|
|
pub use two_macros::m;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn f() {
|
2017-12-10 14:29:24 -06:00
|
|
|
use foo::*;
|
2016-11-28 01:57:17 -06:00
|
|
|
bar::m! { //~ ERROR ambiguous
|
2017-12-10 14:29:24 -06:00
|
|
|
mod bar { pub use two_macros::m; }
|
2016-11-28 01:57:17 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
pub mod baz {
|
2016-11-28 01:57:17 -06:00
|
|
|
pub use two_macros::m;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn g() {
|
|
|
|
baz::m! { //~ ERROR ambiguous
|
2017-12-10 14:29:24 -06:00
|
|
|
mod baz { pub use two_macros::m; }
|
2016-11-28 01:57:17 -06:00
|
|
|
}
|
|
|
|
}
|
2018-03-12 15:21:43 -05:00
|
|
|
|
|
|
|
fn main() {}
|