Bad diagnostic for bad lifetime syntax #36179
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Consider this function:
This gives a help note:
This doesn't demonstrate how to do the syntax. So, if you screw it up:
(which you are likely to do if you are new because the lifetime syntax is foreign...)
Rust will give a very confusing diagnostic:
This seems like something we could improve.
The text was updated successfully, but these errors were encountered: