1
Fork 0
rust/tests/ui/imports/import-prefix-macro-2.rs
Nicholas Nethercote 50076cdeb9 Remove NtPath.
2025-02-28 08:42:14 +11:00

16 lines
260 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 metavariable
}
import! { a::b::c }
fn main() {}