Skip to content

Commit a5ad0be

Browse files
committed
add test for #64784 Declarative macros can create infinite glob import cycles
Fixes #64784
1 parent 14d05c4 commit a5ad0be

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// ICE #64784 already borrowed: BorrowMutError
2+
//@ check-pass
3+
#![feature(decl_macro)]
4+
5+
pub macro m($i:ident, $j:ident) {
6+
mod $i {
7+
pub use crate::$j::*;
8+
pub struct A;
9+
}
10+
}
11+
12+
m!(x, y);
13+
m!(y, x);
14+
15+
fn main() {}

0 commit comments

Comments
 (0)