Check if we can get away with making fn()
conflict with &T
#54351
Labels
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
There's the idea that the
fn(...) -> R
types should be unsized types (likeextern type
) and function pointers should be proper pointers (e.g.&'a fn()
). On its face this appears backwards incompatible in ways editions can't paper over, e.g. if we desugarfn()
to&'static fn()
in 2015 these two impls would suddenly start conflicting:@eddyb wants to try implementing it quickly and hackily it to see what breaks:
The text was updated successfully, but these errors were encountered: