Rollup merge of #49042 - kennytm:fix-e0307-typo, r=rkruppe
Remove unnecessary "`" in error message E0307 (invalid self type).
This commit is contained in:
commit
55a0075a20
@ -525,7 +525,7 @@ fn check_method_receiver<'fcx, 'tcx>(&mut self,
|
||||
} else {
|
||||
fcx.tcx.sess.diagnostic().mut_span_err(
|
||||
span, &format!("invalid `self` type: {:?}", self_arg_ty))
|
||||
.note(&format!("type must be `{:?}` or a type that dereferences to it`", self_ty))
|
||||
.note(&format!("type must be `{:?}` or a type that dereferences to it", self_ty))
|
||||
.help("consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`")
|
||||
.code(DiagnosticId::Error("E0307".into()))
|
||||
.emit();
|
||||
|
@ -4,7 +4,7 @@ error[E0307]: invalid `self` type: &SomeType
|
||||
LL | fn handler(self: &SomeType); //~ ERROR invalid `self` type
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= note: type must be `Self` or a type that dereferences to it`
|
||||
= note: type must be `Self` or a type that dereferences to it
|
||||
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
Loading…
Reference in New Issue
Block a user