2018-08-30 07:18:55 -05:00
|
|
|
//@ run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2019-07-26 17:33:01 -05:00
|
|
|
//@ aux-build:two_macros-rpass.rs
|
2016-11-28 01:57:17 -06:00
|
|
|
|
2019-07-26 17:33:01 -05:00
|
|
|
extern crate two_macros_rpass as two_macros;
|
2016-11-28 01:57:17 -06:00
|
|
|
|
|
|
|
::two_macros::macro_one!();
|
|
|
|
two_macros::macro_one!();
|
|
|
|
|
|
|
|
mod foo { pub use two_macros::macro_one as bar; }
|
|
|
|
|
|
|
|
trait T {
|
|
|
|
foo::bar!();
|
|
|
|
::foo::bar!();
|
|
|
|
}
|
|
|
|
|
|
|
|
struct S {
|
|
|
|
x: foo::bar!(i32),
|
|
|
|
y: ::foo::bar!(i32),
|
|
|
|
}
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
foo::bar!();
|
|
|
|
::foo::bar!();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo::bar!();
|
|
|
|
::foo::bar!();
|
|
|
|
|
|
|
|
let _ = foo::bar!(0);
|
|
|
|
let _ = ::foo::bar!(0);
|
|
|
|
|
|
|
|
let foo::bar!(_) = 0;
|
|
|
|
let ::foo::bar!(_) = 0;
|
|
|
|
}
|