]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_infer/infer/error_reporting/nice_region_error/find_anon_type.rs
Account for multiple impl/dyn Trait in return type when suggesting `'_`
[rust.git] / src / librustc_infer / infer / error_reporting / nice_region_error / find_anon_type.rs
index de71363cbde5ccfad45d91fa688d294f74666695..6677c0e59f63a9e5cd6a0554ed0f212078e6fcde 100644 (file)
@@ -26,7 +26,7 @@ pub(super) fn find_anon_type(
         &self,
         region: Region<'tcx>,
         br: &ty::BoundRegion,
-    ) -> Option<(&hir::Ty<'_>, &hir::FnDecl<'_>)> {
+    ) -> Option<(&hir::Ty<'tcx>, &hir::FnDecl<'tcx>)> {
         if let Some(anon_reg) = self.tcx().is_suitable_region(region) {
             let def_id = anon_reg.def_id;
             if let Some(def_id) = def_id.as_local() {