error[E0034]: multiple applicable items in scope
--> prog.rs:34:29
|
34 | println!("{}", instance.print());
| ^^^^^ multiple `print` found
|
note: candidate #1 is defined in an impl of the trait `traits_1::Trait1` for the type `my_struct::MyStruct`
--> prog.rs:11:9
|
11 | fn print(&self) {
| ^
note: candidate #2 is defined in an impl of the trait `traits_2::Trait2` for the type `my_struct::MyStruct`
--> prog.rs:23:9
|
23 | fn print(&self) {
| ^
error: aborting due to previous error