Open Geobert opened 2 years ago
I'm not sure how this error message can be improved. @Geobert, what exactly do you want to see different about this error message? You mentioned that other playground as what "ideally the output should look like", but I'm not sure what can be taken from that suggestion.
I think the point was to have a suggestion to help solving the issue? As I didn't quite understood the issue in the first place, I just followed the suggestion to create a ticket here, but if it's silly, you can close it :)
Given the following code: For this code
The current output is:
Ideally the output should look like: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d937792ca9217c9556025f96e5574df9
I was asked to create a ticket to improve the compiler when the Result type of a Future is an
impl Trait
after asking the question on the forum: https://users.rust-lang.org/t/another-distinct-uses-of-impl-trait-result-in-different-opaque-types/71136