]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-18566.rs
3 struct MyPtr
<'a
>(&'a
mut usize);
4 impl<'a
> Deref
for MyPtr
<'a
> {
7 fn deref
<'b
>(&'b
self) -> &'b
usize { self.0 }
11 fn poke(&self, s
: &mut usize);
15 fn poke(&self, s
: &mut usize) {
24 //~^ ERROR cannot borrow `*s` as mutable more than once at a time