]>
Commit | Line | Data |
---|---|---|
0731742a XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:85:24 | |
3 | | | |
532ac7d7 | 4 | LL | let _seetype: () = z; |
60c5eb7d XL |
5 | | -- ^ expected `()`, found `u32` |
6 | | | | |
7 | | expected due to this | |
0731742a XL |
8 | |
9 | error[E0308]: mismatched types | |
10 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:102:24 | |
11 | | | |
532ac7d7 | 12 | LL | let _seetype: () = z; |
60c5eb7d XL |
13 | | -- ^ expected `()`, found `u64` |
14 | | | | |
15 | | expected due to this | |
0731742a XL |
16 | |
17 | error[E0034]: multiple applicable items in scope | |
18 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:120:15 | |
19 | | | |
532ac7d7 | 20 | LL | let z = x.foo(); |
0731742a XL |
21 | | ^^^ multiple `foo` found |
22 | | | |
1b1a35ee | 23 | note: candidate #1 is defined in an impl of the trait `X` for the type `T` |
0731742a XL |
24 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:43:9 |
25 | | | |
26 | LL | fn foo(self: Smaht<Self, u64>) -> u64 { | |
27 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
1b1a35ee | 28 | note: candidate #2 is defined in an impl of the trait `NuisanceFoo` for the type `T` |
0731742a XL |
29 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:70:9 |
30 | | | |
31 | LL | fn foo(self) {} | |
32 | | ^^^^^^^^^^^^ | |
33 | note: candidate #3 is defined in the trait `FinalFoo` | |
34 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:57:5 | |
35 | | | |
36 | LL | fn foo(&self) -> u8; | |
37 | | ^^^^^^^^^^^^^^^^^^^^ | |
ba9703b0 | 38 | help: disambiguate the associated function for candidate #1 |
dfeec247 | 39 | | |
1b1a35ee XL |
40 | LL | let z = X::foo(x); |
41 | | ^^^^^^^^^ | |
ba9703b0 | 42 | help: disambiguate the associated function for candidate #2 |
dfeec247 | 43 | | |
1b1a35ee XL |
44 | LL | let z = NuisanceFoo::foo(x); |
45 | | ^^^^^^^^^^^^^^^^^^^ | |
ba9703b0 | 46 | help: disambiguate the associated function for candidate #3 |
dfeec247 XL |
47 | | |
48 | LL | let z = FinalFoo::foo(x); | |
49 | | ^^^^^^^^^^^^^^^^ | |
0731742a XL |
50 | |
51 | error[E0308]: mismatched types | |
52 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:137:24 | |
53 | | | |
532ac7d7 | 54 | LL | let _seetype: () = z; |
60c5eb7d XL |
55 | | -- ^ expected `()`, found `u8` |
56 | | | | |
57 | | expected due to this | |
0731742a XL |
58 | |
59 | error[E0308]: mismatched types | |
60 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155:24 | |
61 | | | |
532ac7d7 | 62 | LL | let _seetype: () = z; |
60c5eb7d XL |
63 | | -- ^ expected `()`, found `u32` |
64 | | | | |
65 | | expected due to this | |
0731742a XL |
66 | |
67 | error[E0308]: mismatched types | |
68 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172:24 | |
69 | | | |
532ac7d7 | 70 | LL | let _seetype: () = z; |
60c5eb7d XL |
71 | | -- ^ expected `()`, found `u32` |
72 | | | | |
73 | | expected due to this | |
0731742a XL |
74 | |
75 | error: aborting due to 6 previous errors | |
76 | ||
48663c56 | 77 | Some errors have detailed explanations: E0034, E0308. |
0731742a | 78 | For more information about an error, try `rustc --explain E0034`. |