rust/tests/ui/privacy/decl-macro-infinite-global-import-cycle-ice-64784.rs

17 lines
261 B
Rust

// ICE #64784 already borrowed: BorrowMutError
//@ check-pass
// issue: rust-lang/rust#64784
#![feature(decl_macro)]
pub macro m($i:ident, $j:ident) {
mod $i {
pub use crate::$j::*;
pub struct A;
}
}
m!(x, y);
m!(y, x);
fn main() {}