mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
f23c6ddada
Improve error messages for generics with default parameters Fixes #120785 Issue: Previously, all type parameters with default types were deliberately ignored to simplify error messages. For example, an error message for Box type would display `Box<T>` instead of `Box<T, _>`. But, this resulted in unclear error message when a concrete type was used instead of the default type. Fix: This PR fixes it by checking if a concrete type is specified after a default type to display the entire type name or the simplified type name. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |