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.
28 lines
983 B
Plaintext
28 lines
983 B
Plaintext
error[E0282]: type annotations needed
|
|
--> $DIR/cross-return-site-inference.rs:33:5
|
|
|
|
|
LL | Ok(())
|
|
| ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
|
|
|
|
|
help: consider specifying the generic arguments
|
|
|
|
|
LL | Ok::<(), E>(())
|
|
| +++++++++
|
|
|
|
error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
|
|
--> $DIR/cross-return-site-inference.rs:38:16
|
|
|
|
|
LL | return Err(From::from("foo"));
|
|
| ^^^^^^^^^^ cannot call associated function of trait
|
|
|
|
error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
|
|
--> $DIR/cross-return-site-inference.rs:44:9
|
|
|
|
|
LL | Err(From::from("foo"))
|
|
| ^^^^^^^^^^ cannot call associated function of trait
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
Some errors have detailed explanations: E0282, E0790.
|
|
For more information about an error, try `rustc --explain E0282`.
|