mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
c2ba4b1cb0
Note closure captures when reporting cast to fn ptr failed Fixes #128078 We already had logic to point out a closure having captures when that's possibly the source of a coercion error to `fn()`, but we weren't reporting it during an explicit `as` cast.