]> git.proxmox.com Git - rustc.git/blame - src/test/ui/methods/method-deref-to-same-trait-object-with-separate-params.stderr
New upstream version 1.35.0+dfsg1
[rustc.git] / src / test / ui / methods / method-deref-to-same-trait-object-with-separate-params.stderr
CommitLineData
0731742a
XL
1error[E0308]: mismatched types
2 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:85:24
3 |
532ac7d7 4LL | let _seetype: () = z;
0731742a
XL
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 |
532ac7d7 13LL | let _seetype: () = z;
0731742a
XL
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 |
532ac7d7 22LL | let z = x.foo();
0731742a
XL
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 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30note: 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 |
33LL | fn foo(self) {}
34 | ^^^^^^^^^^^^
35note: candidate #3 is defined in the trait `FinalFoo`
36 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:57:5
37 |
38LL | fn foo(&self) -> u8;
39 | ^^^^^^^^^^^^^^^^^^^^
40 = help: to disambiguate the method call, write `FinalFoo::foo(x)` instead
41
42error[E0308]: mismatched types
43 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:137:24
44 |
532ac7d7 45LL | let _seetype: () = z;
0731742a
XL
46 | ^ expected (), found u8
47 |
48 = note: expected type `()`
49 found type `u8`
50
51error[E0308]: mismatched types
52 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155:24
53 |
532ac7d7 54LL | let _seetype: () = z;
0731742a
XL
55 | ^ expected (), found u32
56 |
57 = note: expected type `()`
58 found type `u32`
59
60error[E0308]: mismatched types
61 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172:24
62 |
532ac7d7 63LL | let _seetype: () = z;
0731742a
XL
64 | ^ expected (), found u32
65 |
66 = note: expected type `()`
67 found type `u32`
68
69error: aborting due to 6 previous errors
70
71Some errors occurred: E0034, E0308.
72For more information about an error, try `rustc --explain E0034`.