1 error[E0034]: multiple applicable items in scope
2 --> $DIR/method-ambig-two-traits-with-default-method.rs:12:13
5 | ^^^^^^ multiple `method` found
7 note: candidate #1 is defined in an impl of the trait `Foo` for the type `usize`
8 --> $DIR/method-ambig-two-traits-with-default-method.rs:5:13
10 LL | trait Foo { fn method(&self) {} }
12 note: candidate #2 is defined in an impl of the trait `Bar` for the type `usize`
13 --> $DIR/method-ambig-two-traits-with-default-method.rs:6:13
15 LL | trait Bar { fn method(&self) {} }
17 help: disambiguate the associated function for candidate #1
19 LL | Foo::method(&1_usize);
20 | ~~~~~~~~~~~~~~~~~~~~~
21 help: disambiguate the associated function for candidate #2
23 LL | Bar::method(&1_usize);
24 | ~~~~~~~~~~~~~~~~~~~~~
26 error: aborting due to previous error
28 For more information about this error, try `rustc --explain E0034`.