suggest to limit lifetime of temporary borrow with let
This commit is contained in:
parent
148c1bca0f
commit
b975601167
1 changed files with 1 additions and 1 deletions
|
|
@ -2578,7 +2578,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
|
|||
};
|
||||
|
||||
span.push_span_label(original_span, message);
|
||||
err.set_span(span);
|
||||
err.set_span(span.clone());
|
||||
|
||||
format!("is not {}", trait_name)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue