We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6cddd2 commit 061eb97Copy full SHA for 061eb97
compiler/rustc_infer/src/infer/error_reporting/mod.rs
@@ -2453,11 +2453,11 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
2453
&& suggestion_scope == type_scope
2454
{
2455
let suggestion =
2456
- if has_lifetimes { format!("+ {lt_name}") } else { format!(": {lt_name}") };
+ if has_lifetimes { format!(" + {lt_name}") } else { format!(": {lt_name}") };
2457
2458
if needs_parentheses {
2459
suggs.push((sp.shrink_to_lo(), "(".to_string()));
2460
- suggs.push((sp.shrink_to_hi(), format!(") {suggestion}")));
+ suggs.push((sp.shrink_to_hi(), format!("){suggestion}")));
2461
} else {
2462
suggs.push((sp, suggestion))
2463
}
0 commit comments