]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/import-prefix-macro-2.rs
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / 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() {}