]>
Commit | Line | Data |
---|---|---|
1 | error[E0308]: mismatched types | |
2 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:85:24 | |
3 | | | |
4 | LL | let _seetype: () = z; | |
5 | | -- ^ expected `()`, found `u32` | |
6 | | | | |
7 | | expected due to this | |
8 | ||
9 | error[E0308]: mismatched types | |
10 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:102:24 | |
11 | | | |
12 | LL | let _seetype: () = z; | |
13 | | -- ^ expected `()`, found `u64` | |
14 | | | | |
15 | | expected due to this | |
16 | ||
17 | error[E0034]: multiple applicable items in scope | |
18 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:120:15 | |
19 | | | |
20 | LL | let z = x.foo(); | |
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 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
28 | = help: to disambiguate the method call, write `internal::X::foo(x)` instead | |
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 | | ^^^^^^^^^^^^ | |
34 | = help: to disambiguate the method call, write `nuisance_foo::NuisanceFoo::foo(x)` instead | |
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 | | | |
45 | LL | let _seetype: () = z; | |
46 | | -- ^ expected `()`, found `u8` | |
47 | | | | |
48 | | expected due to this | |
49 | ||
50 | error[E0308]: mismatched types | |
51 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155:24 | |
52 | | | |
53 | LL | let _seetype: () = z; | |
54 | | -- ^ expected `()`, found `u32` | |
55 | | | | |
56 | | expected due to this | |
57 | ||
58 | error[E0308]: mismatched types | |
59 | --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172:24 | |
60 | | | |
61 | LL | let _seetype: () = z; | |
62 | | -- ^ expected `()`, found `u32` | |
63 | | | | |
64 | | expected due to this | |
65 | ||
66 | error: aborting due to 6 previous errors | |
67 | ||
68 | Some errors have detailed explanations: E0034, E0308. | |
69 | For more information about an error, try `rustc --explain E0034`. |