Closure-to-fn coercion does not work for unsafe fn
#58478
Labels
A-coercions
Area: implicit and explicit `expr as Type` coercions
unsafe fn
#58478
Given that non-capturing closures coerce to
fn
, andfn
coerces tounsafe fn
, I would expect the transitive step to also happen -- but it does not:This is particularly annoying when instantiating
RawWakerVTable
, because it means one cannot just use closure syntax there.The text was updated successfully, but these errors were encountered: