review comments
This commit is contained in:
parent
5598f35162
commit
f2dd75cb86
2 changed files with 1 additions and 5 deletions
|
|
@ -223,9 +223,6 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
|
|||
.span_to_snippet(pat.span)
|
||||
{
|
||||
err.help(&format!("did you mean `{}: &{}`?",
|
||||
snippet,
|
||||
expected));
|
||||
err.help(&format!("did you mean `{}: {}`?",
|
||||
&snippet[1..],
|
||||
expected));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@ error[E0308]: mismatched types
|
|||
|
|
||||
= note: expected type `Foo`
|
||||
= note: found type `&_`
|
||||
= help: did you mean `&foo: &Foo`?
|
||||
= help: did you mean `foo: Foo`?
|
||||
= help: did you mean `foo: &Foo`?
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue