]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-deref-to-same-trait-object-with-separate-params.stderr
Auto merge of #61937 - AaronKutch:master, r=scottmcm
[rust.git] / src / test / ui / methods / method-deref-to-same-trait-object-with-separate-params.stderr
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    = 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    |
13 LL |     let _seetype: () = z;
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    |
22 LL |     let z = x.foo();
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    = help: to disambiguate the method call, write `internal::X::foo(x)` instead
31 note: candidate #2 is defined in an impl of the trait `nuisance_foo::NuisanceFoo` for the type `_`
32   --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:70:9
33    |
34 LL |         fn foo(self) {}
35    |         ^^^^^^^^^^^^
36    = help: to disambiguate the method call, write `nuisance_foo::NuisanceFoo::foo(x)` instead
37 note: candidate #3 is defined in the trait `FinalFoo`
38   --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:57:5
39    |
40 LL |     fn foo(&self) -> u8;
41    |     ^^^^^^^^^^^^^^^^^^^^
42    = help: to disambiguate the method call, write `FinalFoo::foo(x)` instead
43
44 error[E0308]: mismatched types
45   --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:137:24
46    |
47 LL |     let _seetype: () = z;
48    |                        ^ expected (), found u8
49    |
50    = note: expected type `()`
51               found type `u8`
52
53 error[E0308]: mismatched types
54   --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155:24
55    |
56 LL |     let _seetype: () = z;
57    |                        ^ expected (), found u32
58    |
59    = note: expected type `()`
60               found type `u32`
61
62 error[E0308]: mismatched types
63   --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172:24
64    |
65 LL |     let _seetype: () = z;
66    |                        ^ expected (), found u32
67    |
68    = note: expected type `()`
69               found type `u32`
70
71 error: aborting due to 6 previous errors
72
73 Some errors have detailed explanations: E0034, E0308.
74 For more information about an error, try `rustc --explain E0034`.