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
672 B
Plaintext
Raw Normal View History

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
|
2018-02-23 00:42:32 +00:00
LL | $this.width.unwrap()
| ^^^^^^^^^^^ use of borrowed `*self`
...
LL | let r = &mut *self;
2023-01-15 03:06:44 +00:00
| ---------- `*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 1 previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0503`.