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 935a99a commit 6e42bc3Copy full SHA for 6e42bc3
compiler/rustc_typeck/src/check/op.rs
@@ -571,7 +571,7 @@ This requires ownership of the string on the left.";
571
if let IsAssign::No = is_assign { // Do not supply this message if `&str += &str`
572
err.span_label(op.span, "`+` cannot be used to concatenate two `&str` strings");
573
err.note(str_concat_note);
574
- if let hir::ExprKind::AddrOf(_,_,lhs_inner_expr) = lhs_expr.kind {
+ if let hir::ExprKind::AddrOf(_, _, lhs_inner_expr) = lhs_expr.kind {
575
err.span_suggestion(
576
lhs_expr.span.until(lhs_inner_expr.span),
577
rm_borrow_msg,
0 commit comments