rust/tests/ui/imports/macro-paths.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
385 B
Rust
Raw Normal View History

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() {
use foo::*;
2016-11-28 01:57:17 -06:00
bar::m! { //~ ERROR ambiguous
mod bar { pub use two_macros::m; }
2016-11-28 01:57:17 -06:00
}
}
pub mod baz {
2016-11-28 01:57:17 -06:00
pub use two_macros::m;
}
fn g() {
baz::m! { //~ ERROR ambiguous
mod baz { pub use two_macros::m; }
2016-11-28 01:57:17 -06:00
}
}
fn main() {}