1 2 3 4 5 6 7
struct Foo(); impl Foo { fn bar(&mut self) {} fn baz(&self) {} } fn main() { `[let mut x = Foo {};]` `[x.bar();]` x.baz(); }