fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.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 | ^^^^^^^^^^^^^^ 12 = help: to disambiguate the method call, write `A::foo(t)` instead 13note: candidate #2 is defined in the trait `B` 14 --> $DIR/method-ambig-two-traits-from-bounds.rs:2:11 15 | 16LL | trait B { fn foo(&self); } 17 | ^^^^^^^^^^^^^^ 18 = help: to disambiguate the method call, write `B::foo(t)` instead 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0034`.