diff options
Diffstat (limited to 'tests/ui/borrowck/issue-25793.stderr')
-rw-r--r-- | tests/ui/borrowck/issue-25793.stderr | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/borrowck/issue-25793.stderr b/tests/ui/borrowck/issue-25793.stderr new file mode 100644 index 000000000..da3412f11 --- /dev/null +++ b/tests/ui/borrowck/issue-25793.stderr @@ -0,0 +1,18 @@ +error[E0503]: cannot use `self.width` because it was mutably borrowed + --> $DIR/issue-25793.rs:4:9 + | +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 + +For more information about this error, try `rustc --explain E0503`. |