mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
17 lines
261 B
Rust
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() {}
|