mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-10 19:16:51 +00:00
suggest to limit lifetime of temporary borrow with let
This commit is contained in:
parent
148c1bca0f
commit
b975601167
@ -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…
Reference in New Issue
Block a user