From 432ab343f8c75e657d25713addc2ee0cd5110542 Mon Sep 17 00:00:00 2001 From: Esteban Kuber Date: Mon, 27 Apr 2020 10:59:44 -0700 Subject: [PATCH] fix typo Co-Authored-By: varkor --- src/librustc_infer/infer/error_reporting/need_type_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_infer/infer/error_reporting/need_type_info.rs b/src/librustc_infer/infer/error_reporting/need_type_info.rs index 2b4aeb213824..2ec16408465e 100644 --- a/src/librustc_infer/infer/error_reporting/need_type_info.rs +++ b/src/librustc_infer/infer/error_reporting/need_type_info.rs @@ -248,7 +248,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> { }; printer.name_resolver = Some(Box::new(&getter)); let _ = if let ty::FnDef(..) = ty.kind { - // We don't want the regular output for `fn`s because it inscludes its path in + // We don't want the regular output for `fn`s because it includes its path in // invalid pseduo-syntax, we want the `fn`-pointer output instead. ty.fn_sig(self.tcx).print(printer) } else {