review comments

This commit is contained in:
Esteban Küber 2017-01-04 13:47:04 -08:00
parent 5598f35162
commit f2dd75cb86
2 changed files with 1 additions and 5 deletions

View File

@ -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));
}

View File

@ -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