]>
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; |
0731742a XL |
5 | | ^ expected (), found u32 |
6 | | | |
7 | = note: expected type `()` | |
8 | found type `u32` | |
9 | ||
10 | error[E0308]: mismatched types | |
11 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:102:24 | |
12 | | | |
532ac7d7 | 13 | LL | let _seetype: () = z; |
0731742a XL |
14 | | ^ expected (), found u64 |
15 | | | |
16 | = note: expected type `()` | |
17 | found type `u64` | |
18 | ||
19 | error[E0034]: multiple applicable items in scope | |
20 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:120:15 | |
21 | | | |
532ac7d7 | 22 | LL | let z = x.foo(); |
0731742a XL |
23 | | ^^^ multiple `foo` found |
24 | | | |
25 | note: candidate #1 is defined in an impl of the trait `internal::X` for the type `_` | |
26 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:43:9 | |
27 | | | |
28 | LL | fn foo(self: Smaht<Self, u64>) -> u64 { | |
29 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
30 | note: candidate #2 is defined in an impl of the trait `nuisance_foo::NuisanceFoo` for the type `_` | |
31 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:70:9 | |
32 | | | |
33 | LL | fn foo(self) {} | |
34 | | ^^^^^^^^^^^^ | |
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; |
0731742a XL |
46 | | ^ expected (), found u8 |
47 | | | |
48 | = note: expected type `()` | |
49 | found type `u8` | |
50 | ||
51 | error[E0308]: mismatched types | |
52 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155:24 | |
53 | | | |
532ac7d7 | 54 | LL | let _seetype: () = z; |
0731742a XL |
55 | | ^ expected (), found u32 |
56 | | | |
57 | = note: expected type `()` | |
58 | found type `u32` | |
59 | ||
60 | error[E0308]: mismatched types | |
61 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172:24 | |
62 | | | |
532ac7d7 | 63 | LL | let _seetype: () = z; |
0731742a XL |
64 | | ^ expected (), found u32 |
65 | | | |
66 | = note: expected type `()` | |
67 | found type `u32` | |
68 | ||
69 | error: aborting due to 6 previous errors | |
70 | ||
71 | Some errors occurred: E0034, E0308. | |
72 | For more information about an error, try `rustc --explain E0034`. |