don't convert types into identical types
example: let x: String = String::new().into();
This commit is contained in:
parent
22719efcc5
commit
545d8d675c
4 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue