mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
29 lines
386 B
Rust
29 lines
386 B
Rust
//@ aux-build:two_macros.rs
|
|
|
|
extern crate two_macros;
|
|
|
|
mod foo {
|
|
pub mod bar {
|
|
pub use two_macros::m;
|
|
}
|
|
}
|
|
|
|
fn f() {
|
|
use foo::*;
|
|
bar::m! { //~ ERROR ambiguous
|
|
mod bar { pub use two_macros::m; }
|
|
}
|
|
}
|
|
|
|
pub mod baz {
|
|
pub use two_macros::m;
|
|
}
|
|
|
|
fn g() {
|
|
baz::m! { //~ ERROR ambiguous
|
|
mod baz { pub use two_macros::m; }
|
|
}
|
|
}
|
|
|
|
fn main() {}
|