summaryrefslogtreecommitdiffstats
path: root/src/test/ui/imports/import-prefix-macro-2.rs
blob: 952d161e83facedba9c2bbf4245f9cc78bd99915 (plain)
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 identifier, found `a::b::c`
}

import! { a::b::c }

fn main() {}