Files
rust/tests/ui/macros/borrowck-error-in-macro.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
314 B
Rust
Raw Normal View History

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