mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
91b9ffeab0
In `report_fullfillment_errors` push back `T: Sized`, `T: WellFormed` and coercion errors to the end of the list. The pre-existing deduplication logic eliminates redundant errors better that way, keeping the resulting output with fewer errors than before, while also having more detail.
23 lines
636 B
Plaintext
23 lines
636 B
Plaintext
error[E0283]: type annotations needed
|
|
--> $DIR/suggest-fully-qualified-closure.rs:23:7
|
|
|
|
|
LL | q.lol(||());
|
|
| ^^^
|
|
|
|
|
note: multiple `impl`s satisfying `Qqq: MyTrait<_>` found
|
|
--> $DIR/suggest-fully-qualified-closure.rs:14:1
|
|
|
|
|
LL | impl MyTrait<u32> for Qqq{
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
...
|
|
LL | impl MyTrait<u64> for Qqq{
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
help: try using a fully qualified path to specify the expected types
|
|
|
|
|
LL | <Qqq as MyTrait<T>>::lol::<{closure@}>(&q, ||());
|
|
| +++ ~
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0283`.
|