diff options
Diffstat (limited to 'tests/ui/borrowck/issue-81365-10.stderr')
-rw-r--r-- | tests/ui/borrowck/issue-81365-10.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/borrowck/issue-81365-10.stderr b/tests/ui/borrowck/issue-81365-10.stderr new file mode 100644 index 000000000..27123ef2b --- /dev/null +++ b/tests/ui/borrowck/issue-81365-10.stderr @@ -0,0 +1,13 @@ +error[E0506]: cannot assign to `self.container_field` because it is borrowed + --> $DIR/issue-81365-10.rs:21:9 + | +LL | let first = &self.deref().target_field; + | ------------ borrow of `self.container_field` occurs here +LL | self.container_field = true; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ assignment to borrowed `self.container_field` occurs here +LL | first; + | ----- borrow later used here + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0506`. |