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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
264 B
Rust
Raw Normal View History

2016-04-16 19:48:40 -05: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 one of `::`, `;`, or `as`, found `{`
}
import! { a::b::c }
fn main() {}