]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0503]: cannot use `self.width` because it was mutably borrowed |
0731742a | 2 | --> $DIR/issue-25793.rs:4:9 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | $this.width.unwrap() |
ff7c6d11 XL |
5 | | ^^^^^^^^^^^ use of borrowed `*self` |
6 | ... | |
94b46f34 | 7 | LL | let r = &mut *self; |
48663c56 | 8 | | ---------- borrow of `*self` occurs here |
94b46f34 | 9 | LL | r.get_size(width!(self)) |
48663c56 XL |
10 | | -------- ------------ in this macro invocation |
11 | | | | |
12 | | borrow later used by call | |
74b04a01 | 13 | | |
17df50a5 | 14 | = note: this error originates in the macro `width` (in Nightly builds, run with -Z macro-backtrace for more info) |
ff7c6d11 XL |
15 | |
16 | error: aborting due to previous error | |
17 | ||
0531ce1d | 18 | For more information about this error, try `rustc --explain E0503`. |