]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/import-prefix-macro-1.rs
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[rust.git] / src / test / 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() {}