mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-13 15:33:53 +00:00
![]() Improve diagnostic for generic params from outer items (E0401) Generalize the wording of E0401 to talk about *outer items* instead of *outer functions* since the current phrasing is outdated. The outer item can be a function, constant, trait, ADT or impl block (see the new UI test for the more exotic examples). Further, don't suggest introducing generic parameters to constant items unless the feature `generic_const_items` is enabled. Lastly, make E0401 translatable while we're at it. Fixes #115720. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |