2022-11-08 21:15:02 -06:00
|
|
|
error[E0283]: type annotations needed
|
2024-03-20 17:50:32 -05:00
|
|
|
--> $DIR/suggest-fully-qualified-closure.rs:21:7
|
2022-11-08 21:15:02 -06:00
|
|
|
|
|
|
|
|
LL | q.lol(||());
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
note: multiple `impl`s satisfying `Qqq: MyTrait<_>` found
|
2024-03-20 17:50:32 -05:00
|
|
|
--> $DIR/suggest-fully-qualified-closure.rs:12:1
|
2022-11-08 21:15:02 -06:00
|
|
|
|
|
|
|
|
LL | impl MyTrait<u32> for Qqq{
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | impl MyTrait<u64> for Qqq{
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
help: try using a fully qualified path to specify the expected types
|
|
|
|
|
|
2024-03-20 17:50:32 -05:00
|
|
|
LL | <Qqq as MyTrait<T>>::lol::<_>(&q, ||());
|
|
|
|
| +++++++++++++++++++++++++++++++ ~
|
2022-11-08 21:15:02 -06:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-11-08 21:15:02 -06:00
|
|
|
|
2023-08-14 08:09:53 -05:00
|
|
|
For more information about this error, try `rustc --explain E0283`.
|