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 upSuggestion for E0627's message #50659
Comments
oli-obk
added
the
A-diagnostics
label
May 11, 2018
This comment has been minimized.
This comment has been minimized.
Arnavion
commented
May 11, 2018
But the error message is correct. It's about You're getting this error because you used |
This comment has been minimized.
This comment has been minimized.
@Arnavion I wouldn't be against the compiler having special case code for climbing the scope tree and suggesting marking the enclosing method as We shouldn't be encoding information in the compiler that depends on the community's crates, as things change over time, but I feel that the usability improvement in this case is worth it. That being said, we could try to implement something along the lines of |
This comment has been minimized.
This comment has been minimized.
jesskfullwood
commented
Aug 20, 2018
FWIW this error confused me a lot while trying out async/await for the first time. |
Phrohdoh commentedMay 11, 2018
The error message for E0627 is currently:
rust/src/librustc_typeck/check/mod.rs
Line 4129 in 0a223d1
But could be something, IMHO more helpful, like: