]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/infer/error_reporting/need_type_info.rs
Syntax for hir::Ty.
[rust.git] / src / librustc / infer / error_reporting / need_type_info.rs
index 6b977393806ee8d0993b8cacb467eb6257ee6d59..5a6d336ee1b926524bad39b46cafdc9e4a537b9e 100644 (file)
@@ -107,7 +107,7 @@ fn visit_expr(&mut self, expr: &'tcx Expr<'tcx>) {
 fn closure_return_type_suggestion(
     span: Span,
     err: &mut DiagnosticBuilder<'_>,
-    output: &FunctionRetTy,
+    output: &FunctionRetTy<'_>,
     body: &Body<'_>,
     descr: &str,
     name: &str,
@@ -460,7 +460,7 @@ pub fn need_type_info_err(
     /// needed, suggest annotating the call, otherwise point out the resulting type of the call.
     fn annotate_method_call(
         &self,
-        segment: &hir::PathSegment,
+        segment: &hir::PathSegment<'_>,
         e: &Expr<'_>,
         err: &mut DiagnosticBuilder<'_>,
     ) {