1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
mod a { pub mod b { pub mod c { pub struct S; pub struct Z; } } } macro_rules! import { ($p: path) => (use $p {S, Z}); //~ERROR expected one of `::`, `;`, or `as`, found `{` } import! { a::b::c } fn main() {}