]>
git.proxmox.com Git - rustc.git/blob - tests/ui/borrowck/issue-81365-5.rs
8 fn get(&self) -> &bool
{
15 container_field
: bool
,
18 impl Deref
for Container
{
19 type Target
= DerefTarget
;
20 fn deref(&self) -> &Self::Target
{
26 fn bad_borrow(&mut self) {
27 let first
= self.get();
28 self.container_field
= true; //~ ERROR E0506