add test for #64784 Declarative macros can create infinite glob import cycles

Fixes #64784
This commit is contained in:
Matthias Krüger 2024-03-22 18:00:38 +01:00
parent 14d05c4c4b
commit a5ad0be52f

View File

@ -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() {}