error[E0201]: duplicate definitions with name `bar`:
  --> $DIR/issue-4265.rs:10:5
   |
LL | /     fn bar() {
LL | |         Foo { baz: 0 }.bar();
LL | |     }
   | |_____- previous definition of `bar` here
LL | 
LL | /     fn bar() {
LL | |     }
   | |_____^ duplicate definition

error: aborting due to previous error

For more information about this error, try `rustc --explain E0201`.
