mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
17 lines
264 B
Rust
17 lines
264 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 one of `::`, `;`, or `as`, found `{`
|
|
}
|
|
|
|
import! { a::b::c }
|
|
|
|
fn main() {}
|