1 // Test method calls with self as an argument cannot subvert borrow checking.
15 Foo::bar(&x); //~ERROR cannot borrow `x`
20 Foo::baz(&mut x); //~ERROR cannot borrow `x`
24 trait Fake { fn use_mut(&mut self) { } fn use_ref(&self) { } }
25 impl<T> Fake for T { }