Closed
Description
Specifically, this part of resolving associated fn
/const
s:
rust/src/librustc_ty/instance.rs
Lines 90 to 100 in a17dd36
Is missing this logic deciding whether an associated item is default
:
rust/src/librustc_trait_selection/traits/project.rs
Lines 1018 to 1042 in a17dd36
Just from looking at the code (as I can't get the MIR of this example to constant-fold that associated const
into the function, so I can't test any of this), this would likely mishandle default impl
(instead of default
on the associated item inside the impl
).