diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_typeck/check/method/suggest.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/method/suggest.rs b/src/librustc_typeck/check/method/suggest.rs index 4d4e9191378..8213bd217b8 100644 --- a/src/librustc_typeck/check/method/suggest.rs +++ b/src/librustc_typeck/check/method/suggest.rs @@ -386,7 +386,9 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> { if let Some(expr) = rcvr_expr { err.span_suggestion(expr.span.to(span), "use associated function syntax intead", - format!("{}::{}", self.ty_to_string(actual), item_name)); + format!("{}::{}", + self.ty_to_string(actual), + item_name)); } else { err.help(&format!("try with `{}::{}`", self.ty_to_string(actual), item_name)); |
