about summary refs log tree commit diff
path: root/tests/ui/privacy/decl-macro-infinite-global-import-cycle-ice-64784.rs
blob: 72b1ea7ccc8baf034f87bd0636af6ddc873641c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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() {}