rust/tests/ui/macros/auxiliary/borrowck-error-in-macro.rs
2025-06-02 11:29:27 +02:00

11 lines
163 B
Rust

#[macro_export]
macro_rules! ice {
() => {
fn main() {
let d = &mut 0;
let c = || *d += 1;
c();
}
};
}