mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 10:35:31 +00:00
Point at cause of expectation of `break` value when possible When encountering a type error within the value of a `break` statement, climb the HIR tree to identify if the expectation comes from an assignment or a return type (if the loop is the tail expression of a `fn`). Fix #115905.