Don't lower assoc bindings just to deny them
This commit is contained in:
parent
9f1a21ae2b
commit
3722ad4c26
2 changed files with 7 additions and 11 deletions
|
@ -448,8 +448,8 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
|||
let infer_lifetimes =
|
||||
(gen_pos != GenericArgPosition::Type || infer_args) && !gen_args.has_lifetime_params();
|
||||
|
||||
if gen_pos != GenericArgPosition::Type && !gen_args.bindings.is_empty() {
|
||||
Self::prohibit_assoc_ty_binding(tcx, gen_args.bindings[0].span);
|
||||
if gen_pos != GenericArgPosition::Type && let Some(b) = gen_args.bindings.first() {
|
||||
Self::prohibit_assoc_ty_binding(tcx, b.span);
|
||||
}
|
||||
|
||||
let explicit_late_bound =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue