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 upImprove output of E0271 #40186
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
alexcrichton
added
the
A-diagnostics
label
Apr 10, 2017
This comment has been minimized.
This comment has been minimized.
|
I was searching around for this issue, writing down some keywords so I hopefully can find it easier in the future:
|
TimNN
added a commit
to TimNN/rust
that referenced
this issue
Apr 12, 2017
Mark-Simulacrum
added
the
C-enhancement
label
Jul 26, 2017
This comment has been minimized.
This comment has been minimized.
|
Re #43354 |
estebank
referenced this issue
Sep 30, 2017
Open
new-school type mismatch label can be overly long #34905
estebank
added
WG-compiler-errors
E-needs-mentor
labels
Nov 29, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
seanmonstar commentedMar 1, 2017
This error is encountered often with futures and tokio, where a returned future has an associated type that doesn't match the expected return type.
An example of current behavior:
And a playpen of a the current behavior (though the error is much smaller): https://is.gd/iigJ2p
A message like this pushes the actionable information down several lines. It may help to instead, output something like this:
Additionally, it might be even clearer to omit some of the type parameters (leaving enough to differentiate) in the 'expected' and 'found' notes, leaving the full type for the bottom note.
cc @eddyb