2020-10-16 22:37:54 +00:00
|
|
|
warning: the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
|
2020-05-23 12:35:22 +00:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:2:12
|
2020-10-16 22:37:54 +00:00
|
|
|
|
|
2020-05-23 12:35:22 +00:00
|
|
|
LL | #![feature(unsized_locals, unsized_fn_params)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
2020-10-16 22:37:54 +00:00
|
|
|
|
|
|
|
|
= note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
|
2022-09-18 15:55:36 +00:00
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
2020-10-16 22:37:54 +00:00
|
|
|
|
2019-01-28 22:59:30 +00:00
|
|
|
error[E0308]: mismatched types
|
2020-05-23 12:35:22 +00:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:87:24
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _seetype: () = z;
|
2019-11-19 05:00:24 +00:00
|
|
|
| -- ^ expected `()`, found `u32`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2020-05-23 12:35:22 +00:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:104:24
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _seetype: () = z;
|
2019-11-19 05:00:24 +00:00
|
|
|
| -- ^ expected `()`, found `u64`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
|
|
error[E0034]: multiple applicable items in scope
|
2020-05-23 12:35:22 +00:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:122:15
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let z = x.foo();
|
2019-01-28 22:59:30 +00:00
|
|
|
| ^^^ multiple `foo` found
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
note: candidate #1 is defined in an impl of the trait `X` for the type `T`
|
2020-05-23 12:35:22 +00:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:45:9
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
|
|
|
LL | fn foo(self: Smaht<Self, u64>) -> u64 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-09-02 07:40:56 +00:00
|
|
|
note: candidate #2 is defined in an impl of the trait `NuisanceFoo` for the type `T`
|
2020-05-23 12:35:22 +00:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:72:9
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
|
|
|
LL | fn foo(self) {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
note: candidate #3 is defined in the trait `FinalFoo`
|
2020-05-23 12:35:22 +00:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:59:5
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
|
|
|
LL | fn foo(&self) -> u8;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2023-02-21 21:11:08 +00:00
|
|
|
help: disambiguate the method for candidate #1
|
2019-12-04 06:19:18 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
LL | let z = X::foo(x);
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~
|
2023-02-21 21:11:08 +00:00
|
|
|
help: disambiguate the method for candidate #2
|
2019-12-04 06:19:18 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
LL | let z = NuisanceFoo::foo(x);
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~
|
2023-02-21 21:11:08 +00:00
|
|
|
help: disambiguate the method for candidate #3
|
2019-12-04 06:19:18 +00:00
|
|
|
|
|
2023-11-07 05:22:20 +00:00
|
|
|
LL | let z = FinalFoo::foo(&x);
|
|
|
|
| ~~~~~~~~~~~~~~~~~
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2020-05-23 12:35:22 +00:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:139:24
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _seetype: () = z;
|
2019-11-19 05:00:24 +00:00
|
|
|
| -- ^ expected `()`, found `u8`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2020-05-23 12:35:22 +00:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:157:24
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _seetype: () = z;
|
2019-11-19 05:00:24 +00:00
|
|
|
| -- ^ expected `()`, found `u32`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2020-05-23 12:35:22 +00:00
|
|
|
--> $DIR/method-deref-to-same-trait-object-with-separate-params.rs:174:24
|
2019-01-28 22:59:30 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _seetype: () = z;
|
2019-11-19 05:00:24 +00:00
|
|
|
| -- ^ expected `()`, found `u32`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-01-28 22:59:30 +00:00
|
|
|
|
2020-10-16 22:37:54 +00:00
|
|
|
error: aborting due to 6 previous errors; 1 warning emitted
|
2019-01-28 22:59:30 +00:00
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0034, E0308.
|
2019-01-28 22:59:30 +00:00
|
|
|
For more information about an error, try `rustc --explain E0034`.
|