1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#[macro_export] macro_rules! do_nothing { () => () } mod m1 { pub trait InScope1 { fn in_scope1(&self) {} } impl InScope1 for () {} } mod m2 { pub trait InScope2 { fn in_scope2(&self) {} } impl InScope2 for () {} } pub use m1::InScope1 as _; pub use m2::InScope2 as _;