summary refs log tree commit diff
path: root/tests/ui/macros/borrowck-error-in-macro.rs
blob: fe75188efd20354294275f3e69dd57aa71452e75 (plain)
1
2
3
4
5
6
7
8
//@ 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