From e903752b4814d2d0eb78aa56a515173f286a6cc9 Mon Sep 17 00:00:00 2001 From: Gurinder Singh Date: Fri, 11 Aug 2023 17:52:34 +0530 Subject: [PATCH] Fix typo --- compiler/rustc_hir_typeck/src/method/suggest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_hir_typeck/src/method/suggest.rs b/compiler/rustc_hir_typeck/src/method/suggest.rs index a0d31d3a22c..72a04a02bf4 100644 --- a/compiler/rustc_hir_typeck/src/method/suggest.rs +++ b/compiler/rustc_hir_typeck/src/method/suggest.rs @@ -1681,7 +1681,7 @@ fn suggest_constraining_numerical_ty( || found_assoc(tcx.types.u64) || found_assoc(tcx.types.u128) || found_assoc(tcx.types.f32) - || found_assoc(tcx.types.f32); + || found_assoc(tcx.types.f64); if found_candidate && actual.is_numeric() && !actual.has_concrete_skeleton()