structBar;implBar{fnbar(&mutself,_: implFn()){}}structFoo{thing: Bar,number: usize,}implFoo{fnfoo(&mutself){self.thing.bar(||{//~^ ERROR cannot borrow `self.thing` as mutable because it is also borrowed as immutable [E0502]&self.number;});}}fnmain(){}