Point at return expression for RPIT-related error

This commit is contained in:
Michael Goulet
2022-06-06 23:20:13 -07:00
parent dc80ca78b6
commit 52409c4c90
14 changed files with 97 additions and 5 deletions

View File

@@ -387,6 +387,9 @@ pub enum ObligationCauseCode<'tcx> {
/// Return type of this function
ReturnType,
/// Opaque return type of this function
OpaqueReturnType(Option<(Ty<'tcx>, Span)>),
/// Block implicit return
BlockTailExpression(hir::HirId),