mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
17 lines
258 B
Rust
17 lines
258 B
Rust
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() {}
|