1
Fork 0

Reduce verbosity for ? on non-Try expressions

This commit is contained in:
Esteban Kuber 2021-11-16 02:17:57 +00:00
parent 75b62757e4
commit caf0c1bb1c
4 changed files with 8 additions and 15 deletions

View file

@ -1964,6 +1964,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
| ObligationCauseCode::BlockTailExpression(_)
| ObligationCauseCode::AwaitableExpr
| ObligationCauseCode::ForLoopIterator
| ObligationCauseCode::QuestionMark
| ObligationCauseCode::LetElse => {}
ObligationCauseCode::SliceOrArrayElem => {
err.note("slice and array elements must have `Sized` type");