mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
656db98bd9
CC #99430
19 lines
670 B
Plaintext
19 lines
670 B
Plaintext
error[E0503]: cannot use `self.width` because it was mutably borrowed
|
|
--> $DIR/issue-25793.rs:4:9
|
|
|
|
|
LL | $this.width.unwrap()
|
|
| ^^^^^^^^^^^ use of borrowed `*self`
|
|
...
|
|
LL | let r = &mut *self;
|
|
| ---------- `*self` is borrowed here
|
|
LL | r.get_size(width!(self))
|
|
| -------- ------------ in this macro invocation
|
|
| |
|
|
| borrow later used by call
|
|
|
|
|
= note: this error originates in the macro `width` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0503`.
|