rust/tests/ui/macros/borrowck-error-in-macro.rs
2025-06-02 14:22:14 +02:00

9 lines
314 B
XML

//@ aux-build: borrowck-error-in-macro.rs
//@ error-pattern: a call in this macro requires a mutable binding due to mutable borrow of `d`
//FIXME: remove error-pattern (see #141896)
extern crate borrowck_error_in_macro as a;
a::ice! {}
//~^ ERROR cannot borrow value as mutable, as it is not declared as mutable