fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
2.6 KiB74 linesraw
1error[E0308]: mismatched types
2  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:85:24
3   |
4LL |     let _seetype: () = z;
5   |                        ^ expected (), found u32
6   |
7   = note: expected type `()`
8              found type `u32`
9
10error[E0308]: mismatched types
11  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:102:24
12   |
13LL |     let _seetype: () = z;
14   |                        ^ expected (), found u64
15   |
16   = note: expected type `()`
17              found type `u64`
18
19error[E0034]: multiple applicable items in scope
20  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:120:15
21   |
22LL |     let z = x.foo();
23   |               ^^^ multiple `foo` found
24   |
25note: 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   |
28LL |         fn foo(self: Smaht<Self, u64>) -> u64 {
29   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30   = help: to disambiguate the method call, write `internal::X::foo(x)` instead
31note: 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   |
34LL |         fn foo(self) {}
35   |         ^^^^^^^^^^^^
36   = help: to disambiguate the method call, write `nuisance_foo::NuisanceFoo::foo(x)` instead
37note: candidate #3 is defined in the trait `FinalFoo`
38  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:57:5
39   |
40LL |     fn foo(&self) -> u8;
41   |     ^^^^^^^^^^^^^^^^^^^^
42   = help: to disambiguate the method call, write `FinalFoo::foo(x)` instead
43
44error[E0308]: mismatched types
45  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:137:24
46   |
47LL |     let _seetype: () = z;
48   |                        ^ expected (), found u8
49   |
50   = note: expected type `()`
51              found type `u8`
52
53error[E0308]: mismatched types
54  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155:24
55   |
56LL |     let _seetype: () = z;
57   |                        ^ expected (), found u32
58   |
59   = note: expected type `()`
60              found type `u32`
61
62error[E0308]: mismatched types
63  --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172:24
64   |
65LL |     let _seetype: () = z;
66   |                        ^ expected (), found u32
67   |
68   = note: expected type `()`
69              found type `u32`
70
71error: aborting due to 6 previous errors
72
73Some errors have detailed explanations: E0034, E0308.
74For more information about an error, try `rustc --explain E0034`.