mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-29 22:34:19 +00:00
This commit improves the diagnostic when a type parameter is expected and a closure is found, noting that each closure has a distinct type and therefore could not always match the caller-chosen type of the parameter. Signed-off-by: David Wood <david@davidtw.co>
For more information about how rustc works, see the rustc dev guide.