1 error[E0201]: duplicate definitions with name `bar`:
2 --> $DIR/issue-8153.rs:11:5
4 LL | fn bar(&self) -> isize;
5 | ----------------------- item in trait
7 LL | fn bar(&self) -> isize {1}
8 | -------------------------- previous definition here
9 LL | fn bar(&self) -> isize {2}
10 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0201`.