]> 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.41.1+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;
60c5eb7d
XL
5 | -- ^ expected `()`, found `u32`
6 | |
7 | expected due to this
0731742a
XL
8
9error[E0308]: mismatched types
10 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:102:24
11 |
532ac7d7 12LL | let _seetype: () = z;
60c5eb7d
XL
13 | -- ^ expected `()`, found `u64`
14 | |
15 | expected due to this
0731742a
XL
16
17error[E0034]: multiple applicable items in scope
18 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:120:15
19 |
532ac7d7 20LL | let z = x.foo();
0731742a
XL
21 | ^^^ multiple `foo` found
22 |
23note: 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 |
26LL | fn foo(self: Smaht<Self, u64>) -> u64 {
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
416331ca 28 = help: to disambiguate the method call, write `internal::X::foo(x)` instead
0731742a
XL
29note: 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 |
32LL | fn foo(self) {}
33 | ^^^^^^^^^^^^
416331ca 34 = help: to disambiguate the method call, write `nuisance_foo::NuisanceFoo::foo(x)` instead
0731742a
XL
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;
60c5eb7d
XL
46 | -- ^ expected `()`, found `u8`
47 | |
48 | expected due to this
0731742a
XL
49
50error[E0308]: mismatched types
51 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155:24
52 |
532ac7d7 53LL | let _seetype: () = z;
60c5eb7d
XL
54 | -- ^ expected `()`, found `u32`
55 | |
56 | expected due to this
0731742a
XL
57
58error[E0308]: mismatched types
59 --> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172:24
60 |
532ac7d7 61LL | let _seetype: () = z;
60c5eb7d
XL
62 | -- ^ expected `()`, found `u32`
63 | |
64 | expected due to this
0731742a
XL
65
66error: aborting due to 6 previous errors
67
48663c56 68Some errors have detailed explanations: E0034, E0308.
0731742a 69For more information about an error, try `rustc --explain E0034`.