rust/tests/ui/imports/import-prefix-macro-2.rs

17 lines
258 B
Rust
Raw Normal View History

2016-04-17 03:48:40 +03:00
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() {}