Modify existing bounds if they exist
This commit is contained in:
parent
044a28a409
commit
af5a37e844
13 changed files with 186 additions and 43 deletions
|
@ -679,6 +679,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
|||
¶m_name,
|
||||
&constraint,
|
||||
Some(trait_pred.def_id()),
|
||||
None,
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
@ -1087,6 +1088,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
|||
param.name.as_str(),
|
||||
"Clone",
|
||||
Some(clone_trait),
|
||||
None,
|
||||
);
|
||||
}
|
||||
err.span_suggestion_verbose(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue