Reduce verbosity when calling for-loop on non-Iterator expression

This commit is contained in:
Esteban Kuber
2021-11-16 01:46:28 +00:00
parent 7227a87371
commit 75b62757e4
4 changed files with 12 additions and 7 deletions

View File

@@ -350,6 +350,8 @@ pub enum ObligationCauseCode<'tcx> {
AwaitableExpr,
ForLoopIterator,
/// Well-formed checking. If a `WellFormedLoc` is provided,
/// then it will be used to eprform HIR-based wf checking
/// after an error occurs, in order to generate a more precise error span.