1
Fork 0

don't convert types into identical types

example: let x: String = String::new().into();
This commit is contained in:
Matthias Krüger 2021-09-11 10:31:56 +02:00
parent 22719efcc5
commit 545d8d675c
4 changed files with 5 additions and 5 deletions

View file

@ -2345,7 +2345,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
);
err.span_suggestion(
generics.where_clause.tail_span_for_suggestion(),
"consider adding a where clause".into(),
"consider adding a where clause",
suggestion,
Applicability::MaybeIncorrect,
);