]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/import-prefix-macro-1.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / imports / import-prefix-macro-1.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 one of `::`, `;`, or `as`, found `{`
12 }
13
14 import! { a::b::c }
15
16 fn main() {}