Skip to content

Commit a5f7d44

Browse files
committed
add test for 141764
1 parent 4d08223 commit a5f7d44

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#[macro_export]
2+
macro_rules! ice {
3+
() => {
4+
fn main() {
5+
let d = &mut 0;
6+
let c = || *d += 1;
7+
c();
8+
}
9+
};
10+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//@ aux-build: borrowck-error-in-macro.rs
2+
3+
extern crate borrowck_error_in_macro as a;
4+
5+
a::ice! {}

0 commit comments

Comments
 (0)