Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upReturn type that doesn't satisfy `impl Trait` messages should point out the reason #44530
Comments
estebank
added
A-diagnostics
A-impl-trait
labels
Sep 12, 2017
Mark-Simulacrum
added
C-enhancement
T-compiler
labels
Sep 17, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
estebank commentedSep 12, 2017
•
edited
Currently, for the following code where a function's signature returns an
impl Traitthat isn't implemented by the actual return type:provides the following output:
An appropriate output would at the very least need to be:
On cases where the returned type is local to the project, the declaration of the type should be pointed out