]>
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 | | | |
23 | note: candidate #1 is defined in an impl of the trait `internal::X` for the type `_` | |
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 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
416331ca | 28 | = help: to disambiguate the method call, write `internal::X::foo(x)` instead |
0731742a XL |
29 | note: candidate #2 is defined in an impl of the trait `nuisance_foo::NuisanceFoo` for the type `_` |
30 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:70:9 | |
31 | | | |
32 | LL | fn foo(self) {} | |
33 | | ^^^^^^^^^^^^ | |
416331ca | 34 | = help: to disambiguate the method call, write `nuisance_foo::NuisanceFoo::foo(x)` instead |
0731742a XL |
35 | note: candidate #3 is defined in the trait `FinalFoo` |
36 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:57:5 | |
37 | | | |
38 | LL | fn foo(&self) -> u8; | |
39 | | ^^^^^^^^^^^^^^^^^^^^ | |
40 | = help: to disambiguate the method call, write `FinalFoo::foo(x)` instead | |
41 | ||
42 | error[E0308]: mismatched types | |
43 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:137:24 | |
44 | | | |
532ac7d7 | 45 | LL | let _seetype: () = z; |
60c5eb7d XL |
46 | | -- ^ expected `()`, found `u8` |
47 | | | | |
48 | | expected due to this | |
0731742a XL |
49 | |
50 | error[E0308]: mismatched types | |
51 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155:24 | |
52 | | | |
532ac7d7 | 53 | LL | let _seetype: () = z; |
60c5eb7d XL |
54 | | -- ^ expected `()`, found `u32` |
55 | | | | |
56 | | expected due to this | |
0731742a XL |
57 | |
58 | error[E0308]: mismatched types | |
59 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172:24 | |
60 | | | |
532ac7d7 | 61 | LL | let _seetype: () = z; |
60c5eb7d XL |
62 | | -- ^ expected `()`, found `u32` |
63 | | | | |
64 | | expected due to this | |
0731742a XL |
65 | |
66 | error: aborting due to 6 previous errors | |
67 | ||
48663c56 | 68 | Some errors have detailed explanations: E0034, E0308. |
0731742a | 69 | For more information about an error, try `rustc --explain E0034`. |