fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0034]: multiple applicable items in scope 2 --> $DIR/method-ambig-two-traits-from-bounds.rs:5:7 3 | 4LL | t.foo(); 5 | ^^^ multiple `foo` found 6 | 7note: candidate #1 is defined in the trait `A` 8 --> $DIR/method-ambig-two-traits-from-bounds.rs:1:11 9 | 10LL | trait A { fn foo(&self); } 11 | ^^^^^^^^^^^^^^ 12note: candidate #2 is defined in the trait `B` 13 --> $DIR/method-ambig-two-traits-from-bounds.rs:2:11 14 | 15LL | trait B { fn foo(&self); } 16 | ^^^^^^^^^^^^^^ 17help: disambiguate the method call for candidate #1 18 | 19LL | A::foo(t); 20 | ^^^^^^^^^ 21help: disambiguate the method call for candidate #2 22 | 23LL | B::foo(t); 24 | ^^^^^^^^^ 25 26error: aborting due to previous error 27 28For more information about this error, try `rustc --explain E0034`.