]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/import-prefix-macro-2.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / ui / imports / import-prefix-macro-2.rs
1 mod a {
2     pub mod b {
3         pub mod c {
4             pub struct S;
5             pub struct Z;
6         }
7     }
8 }
9
10 macro_rules! import {
11     ($p: path) => (use ::$p {S, Z}); //~ERROR  expected identifier, found `a::b::c`
12 }
13
14 import! { a::b::c }
15
16 fn main() {}