Files
rust/tests/ui/methods/method-deref-to-same-trait-object-with-separate-params.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
2.4 KiB
Plaintext
Raw Normal View History

error[E0308]: mismatched types
2025-06-13 01:16:36 +02:00
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:88:24
|
2019-03-09 15:03:44 +03:00
LL | let _seetype: () = z;
| -- ^ expected `()`, found `u32`
| |
| expected due to this
error[E0308]: mismatched types
2025-06-13 01:16:36 +02:00
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:105:24
|
2019-03-09 15:03:44 +03:00
LL | let _seetype: () = z;
| -- ^ expected `()`, found `u64`
| |
| expected due to this
error[E0034]: multiple applicable items in scope
2025-06-13 01:16:36 +02:00
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:123:15
|
2019-03-09 15:03:44 +03:00
LL | let z = x.foo();
| ^^^ multiple `foo` found
|
note: candidate #1 is defined in an impl of the trait `NuisanceFoo` for the type `T`
2025-06-13 01:16:36 +02:00
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:73:9
|
LL | fn foo(self) {}
| ^^^^^^^^^^^^
note: candidate #2 is defined in an impl of the trait `X` for the type `T`
2025-06-13 01:16:36 +02:00
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:46:9
|
LL | fn foo(self: Smaht<Self, u64>) -> u64 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: disambiguate the method for candidate #1
|
LL - let z = x.foo();
LL + let z = NuisanceFoo::foo(x);
|
help: disambiguate the method for candidate #2
|
LL - let z = x.foo();
LL + let z = X::foo(x);
|
error[E0308]: mismatched types
2025-06-13 01:16:36 +02:00
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:140:24
|
2019-03-09 15:03:44 +03:00
LL | let _seetype: () = z;
| -- ^ expected `()`, found `u8`
| |
| expected due to this
error[E0308]: mismatched types
2025-06-13 01:16:36 +02:00
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:158:24
|
2019-03-09 15:03:44 +03:00
LL | let _seetype: () = z;
| -- ^ expected `()`, found `u32`
| |
| expected due to this
error[E0308]: mismatched types
2025-06-13 01:16:36 +02:00
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:175:24
|
2019-03-09 15:03:44 +03:00
LL | let _seetype: () = z;
| -- ^ expected `()`, found `u32`
| |
| expected due to this
2025-06-13 01:16:36 +02:00
error: aborting due to 6 previous errors
Some errors have detailed explanations: E0034, E0308.
For more information about an error, try `rustc --explain E0034`.