2019-01-29 00:59:30 +02:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:85:24
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:102:24
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:120:15
|
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let z = x.foo();
|
2019-01-29 00:59:30 +02:00
|
|
|
| ^^^ multiple `foo` found
|
|
|
|
|
|
2020-04-13 11:36:37 +09:00
|
|
|
note: candidate #1 is defined in an impl of the trait `internal::X` for the type `T`
|
2019-01-29 00:59:30 +02:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:43:9
|
|
|
|
|
|
|
|
|
LL | fn foo(self: Smaht<Self, u64>) -> u64 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-04-13 11:36:37 +09:00
|
|
|
note: candidate #2 is defined in an impl of the trait `nuisance_foo::NuisanceFoo` for the type `T`
|
2019-01-29 00:59:30 +02:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:70:9
|
|
|
|
|
|
|
|
|
LL | fn foo(self) {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
note: candidate #3 is defined in the trait `FinalFoo`
|
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:57:5
|
|
|
|
|
|
|
|
|
LL | fn foo(&self) -> u8;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2020-04-01 10:09:50 +08:00
|
|
|
help: disambiguate the associated function for candidate #1
|
2019-12-03 22:19:18 -08:00
|
|
|
|
|
|
|
|
LL | let z = internal::X::foo(x);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2020-04-01 10:09:50 +08:00
|
|
|
help: disambiguate the associated function for candidate #2
|
2019-12-03 22:19:18 -08:00
|
|
|
|
|
|
|
|
LL | let z = nuisance_foo::NuisanceFoo::foo(x);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-04-01 10:09:50 +08:00
|
|
|
help: disambiguate the associated function for candidate #3
|
2019-12-03 22:19:18 -08:00
|
|
|
|
|
|
|
|
LL | let z = FinalFoo::foo(x);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2019-01-29 00:59:30 +02:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:137:24
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:155:24
|
|
|
|
|
|
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
|
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:172:24
|
|
|
|
|
|
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: aborting due to 6 previous errors
|
|
|
|
|
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`.
|