add test for #64784 Declarative macros can create infinite glob import cycles
Fixes #64784
This commit is contained in:
parent
14d05c4c4b
commit
a5ad0be52f
@ -0,0 +1,15 @@
|
||||
// ICE #64784 already borrowed: BorrowMutError
|
||||
//@ check-pass
|
||||
#![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() {}
|
Loading…
x
Reference in New Issue
Block a user