@@ -29,33 +29,33 @@ error[E0034]: multiple applicable items in scope
29
29
LL | let z = x.foo();
30
30
| ^^^ multiple `foo` found
31
31
|
32
- note: candidate #1 is defined in an impl of the trait `X` for the type `T `
33
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:45:9
32
+ note: candidate #1 is defined in the trait `FinalFoo `
33
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:59:5
34
34
|
35
- LL | fn foo(self: Smaht<Self, u64> ) -> u64 {
36
- | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
35
+ LL | fn foo(& self) -> u8;
36
+ | ^^^^^^^^^^^^^^^^^^^^
37
37
note: candidate #2 is defined in an impl of the trait `NuisanceFoo` for the type `T`
38
38
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:72:9
39
39
|
40
40
LL | fn foo(self) {}
41
41
| ^^^^^^^^^^^^
42
- note: candidate #3 is defined in the trait `FinalFoo `
43
- --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:59:5
42
+ note: candidate #3 is defined in an impl of the trait `X` for the type `T `
43
+ --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:45:9
44
44
|
45
- LL | fn foo(& self) -> u8;
46
- | ^^^^^^^^^^^^^^^^^^^^
45
+ LL | fn foo(self: Smaht<Self, u64> ) -> u64 {
46
+ | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
47
47
help: disambiguate the method for candidate #1
48
48
|
49
- LL | let z = X ::foo(x);
50
- | ~~~~~~~~~
49
+ LL | let z = FinalFoo ::foo(& x);
50
+ | ~~~~~~~~~~~~~~~~~
51
51
help: disambiguate the method for candidate #2
52
52
|
53
53
LL | let z = NuisanceFoo::foo(x);
54
54
| ~~~~~~~~~~~~~~~~~~~
55
55
help: disambiguate the method for candidate #3
56
56
|
57
- LL | let z = FinalFoo ::foo(& x);
58
- | ~~~~~~~~~~~~~~~~~
57
+ LL | let z = X ::foo(x);
58
+ | ~~~~~~~~~
59
59
60
60
error[E0308]: mismatched types
61
61
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:139:24
0 commit comments