2019-01-29 00:59:30 +02:00
|
|
|
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-01-29 00:59:30 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let _seetype: () = z;
|
2019-11-18 21:00:24 -08:00
|
|
|
| -- ^ expected `()`, found `u32`
|
|
|
|
|
| |
|
|
|
|
|
| expected due to this
|
2019-01-29 00:59:30 +02:00
|
|
|
|
|
|
|
|
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-01-29 00:59:30 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let _seetype: () = z;
|
2019-11-18 21:00:24 -08:00
|
|
|
| -- ^ expected `()`, found `u64`
|
|
|
|
|
| |
|
|
|
|
|
| expected due to this
|
2019-01-29 00:59:30 +02:00
|
|
|
|
|
|
|
|
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-01-29 00:59:30 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let z = x.foo();
|
2019-01-29 00:59:30 +02:00
|
|
|
| ^^^ multiple `foo` found
|
|
|
|
|
|
|
2025-07-16 23:21:47 +08:00
|
|
|
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
|
2019-01-29 00:59:30 +02:00
|
|
|
|
|
|
|
|
|
LL | fn foo(self) {}
|
|
|
|
|
| ^^^^^^^^^^^^
|
2025-07-16 23:21:47 +08:00
|
|
|
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
|
2019-01-29 00:59:30 +02:00
|
|
|
|
|
2024-03-21 16:47:04 +00:00
|
|
|
LL | fn foo(self: Smaht<Self, u64>) -> u64 {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-02-21 14:11:08 -07:00
|
|
|
help: disambiguate the method for candidate #1
|
2019-12-03 22:19:18 -08:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - let z = x.foo();
|
|
|
|
|
LL + let z = NuisanceFoo::foo(x);
|
|
|
|
|
|
|
2025-07-16 23:21:47 +08:00
|
|
|
help: disambiguate the method for candidate #2
|
2019-12-03 22:19:18 -08:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - let z = x.foo();
|
|
|
|
|
LL + let z = X::foo(x);
|
|
|
|
|
|
|
2019-01-29 00:59:30 +02:00
|
|
|
|
|
|
|
|
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-01-29 00:59:30 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let _seetype: () = z;
|
2019-11-18 21:00:24 -08:00
|
|
|
| -- ^ expected `()`, found `u8`
|
|
|
|
|
| |
|
|
|
|
|
| expected due to this
|
2019-01-29 00:59:30 +02:00
|
|
|
|
|
|
|
|
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-01-29 00:59:30 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let _seetype: () = z;
|
2019-11-18 21:00:24 -08:00
|
|
|
| -- ^ expected `()`, found `u32`
|
|
|
|
|
| |
|
|
|
|
|
| expected due to this
|
2019-01-29 00:59:30 +02:00
|
|
|
|
|
|
|
|
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-01-29 00:59:30 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let _seetype: () = z;
|
2019-11-18 21:00:24 -08:00
|
|
|
| -- ^ expected `()`, found `u32`
|
|
|
|
|
| |
|
|
|
|
|
| expected due to this
|
2019-01-29 00:59:30 +02:00
|
|
|
|
2025-06-13 01:16:36 +02:00
|
|
|
error: aborting due to 6 previous errors
|
2019-01-29 00:59:30 +02:00
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
Some errors have detailed explanations: E0034, E0308.
|
2019-01-29 00:59:30 +02:00
|
|
|
For more information about an error, try `rustc --explain E0034`.
|