1
Fork 0

Make span_suggestions take IntoIterator

This commit is contained in:
Michael Goulet 2022-10-07 02:05:57 +00:00
parent fbce7decd8
commit e807cb3c41
6 changed files with 11 additions and 11 deletions

View file

@ -1117,7 +1117,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
err.span_suggestions(
span.shrink_to_lo(),
"consider borrowing here",
["&".to_string(), "&mut ".to_string()].into_iter(),
["&".to_string(), "&mut ".to_string()],
Applicability::MaybeIncorrect,
);
} else {