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