diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/imports/import-prefix-macro-2.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/imports/import-prefix-macro-2.rs b/src/test/ui/imports/import-prefix-macro-2.rs new file mode 100644 index 000000000..952d161e8 --- /dev/null +++ b/src/test/ui/imports/import-prefix-macro-2.rs @@ -0,0 +1,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() {} |