E0308 source of expectation isn't shown for closures #106821
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-papercut
Diagnostics: An error or lint that needs small tweaks.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
rust/tests/ui/closures/issue-84128.rs
Lines 7 to 16 in 0b90256
currently emits
rust/tests/ui/closures/issue-84128.stderr
Lines 1 to 13 in 0b90256
It should include the source of the expectation (the
return
statement earlier in the closure).Noticed here https://github.com/rust-lang/rust/pull/106752/files#r1069781007
The text was updated successfully, but these errors were encountered: