2017-12-10 19:47:55 +00:00
|
|
|
error[E0503]: cannot use `self.width` because it was mutably borrowed
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-25793.rs:4:9
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | $this.width.unwrap()
|
2017-12-10 19:47:55 +00:00
|
|
|
| ^^^^^^^^^^^ use of borrowed `*self`
|
|
|
|
...
|
2018-05-25 10:36:58 +00:00
|
|
|
LL | let r = &mut *self;
|
2023-01-15 03:06:44 +00:00
|
|
|
| ---------- `*self` is borrowed here
|
2018-05-25 10:36:58 +00:00
|
|
|
LL | r.get_size(width!(self))
|
2019-04-22 07:40:08 +00:00
|
|
|
| -------- ------------ in this macro invocation
|
|
|
|
| |
|
|
|
|
| borrow later used by call
|
2019-12-16 13:56:47 +00:00
|
|
|
|
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `width` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0503`.
|