]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-25793.stderr
Move /src/test to /tests
[rust.git] / tests / ui / borrowck / issue-25793.stderr
1 error[E0503]: cannot use `self.width` because it was mutably borrowed
2   --> $DIR/issue-25793.rs:4:9
3    |
4 LL |         $this.width.unwrap()
5    |         ^^^^^^^^^^^ use of borrowed `*self`
6 ...
7 LL |         let r = &mut *self;
8    |                 ---------- borrow of `*self` occurs here
9 LL |         r.get_size(width!(self))
10    |           -------- ------------ in this macro invocation
11    |           |
12    |           borrow later used by call
13    |
14    = note: this error originates in the macro `width` (in Nightly builds, run with -Z macro-backtrace for more info)
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0503`.