LUB coercions can't combine unsafe fn item with safe fn item or pointer #131854
Labels
A-coercions
Area: implicit and explicit `expr as Type` coercions
C-bug
Category: This is a bug.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code: playground
I expected to see this happen: I expected the safe fn item and unsafe fn item to combine to an unsafe fn ptr, especially since the closure and unsafe fn item do combine to an unsafe fn ptr.
Instead, this happened:
Meta
playground nightly
@rustbot label A-coercions T-types
The text was updated successfully, but these errors were encountered: