fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
787 B22 linesraw
1error[E0034]: multiple applicable items in scope
2  --> $DIR/trait-alias-ambiguous.rs:21:7
3   |
4LL |     t.foo();
5   |       ^^^ multiple `foo` found
6   |
7note: candidate #1 is defined in an impl of the trait `inner::A` for the type `u8`
8  --> $DIR/trait-alias-ambiguous.rs:8:9
9   |
10LL |         fn foo(&self) {}
11   |         ^^^^^^^^^^^^^
12   = help: to disambiguate the method call, write `inner::A::foo(t)` instead
13note: candidate #2 is defined in an impl of the trait `inner::B` for the type `u8`
14  --> $DIR/trait-alias-ambiguous.rs:11:9
15   |
16LL |         fn foo(&self) {}
17   |         ^^^^^^^^^^^^^
18   = help: to disambiguate the method call, write `inner::B::foo(t)` instead
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0034`.