Open
Description
As laid out in the guide for the Never type fallback, closures which panic are now inferred to return !
, rather than ()
.
In Bevy, we encountered this surprising breaking change in the form of bevyengine/bevy#18778. While individual users can work around this by writing |my closure | -> ()
and explicitly specifying a return type or by using an ordinary function, we cannot work around this breakage ourselves by writing another blanket implementation because the Never type (!
) is not available on stable Rust.