rust/tests/ui/borrowck/issue-25793.stderr

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

19 lines
675 B
Plaintext
Raw Normal View History

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
|
2018-02-22 18:42:32 -06:00
LL | $this.width.unwrap()
| ^^^^^^^^^^^ use of borrowed `*self`
...
LL | let r = &mut *self;
| ---------- borrow of `*self` occurs 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
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0503`.