Point at return expression for RPIT-related error
This commit is contained in:
@@ -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),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user