X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_typeck%2Fsrc%2Fimpl_wf_check.rs;h=1240946860573bf88e96ad26651ae0fd156a399e;hb=6327e46d8c21d54734eb5eb44604be487a8e6bdb;hp=7713381e62e467b8c739cf026e1e6b92f983591d;hpb=d9bc16cf368f1a8701295ed83f0337461acd6963;p=rust.git diff --git a/compiler/rustc_typeck/src/impl_wf_check.rs b/compiler/rustc_typeck/src/impl_wf_check.rs index 7713381e62e..12409468605 100644 --- a/compiler/rustc_typeck/src/impl_wf_check.rs +++ b/compiler/rustc_typeck/src/impl_wf_check.rs @@ -173,7 +173,7 @@ fn enforce_impl_params_are_constrained( ); } } - ty::GenericParamDefKind::Const => { + ty::GenericParamDefKind::Const { .. } => { let param_ct = ty::ParamConst::for_def(param); if !input_parameters.contains(&cgp::Parameter::from(param_ct)) { report_unused_parameter(