Matthias Krüger
8b49731211
Rollup merge of #115744 - fmease:fix-e0401, r=compiler-errors
...
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 .
2023-09-11 17:03:32 +02:00
..
2023-08-24 20:44:08 +03:00
2023-07-25 12:08:44 +01:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-08-30 15:09:40 -07:00
2023-07-23 07:09:14 +00:00
2023-07-10 20:09:26 +00:00
2023-07-18 21:53:34 -04:00
2023-08-02 13:40:28 +03:00
2023-08-02 13:40:28 +03:00
2023-09-10 21:20:36 +00:00
2023-07-25 12:08:44 +01:00
2023-07-25 12:08:44 +01:00
2023-07-18 21:53:34 -04:00
2023-07-18 21:53:34 -04:00
2023-07-10 20:09:26 +00:00
2023-08-28 03:16:48 -07:00
2023-07-25 12:08:44 +01:00
2023-07-25 12:08:44 +01:00
2023-07-18 21:53:34 -04:00
2023-07-18 21:53:34 -04:00
2023-07-18 21:53:34 -04:00
2023-08-28 03:16:48 -07:00
2023-09-10 21:20:36 +00:00
2023-08-04 13:17:39 +02:00
2023-08-26 19:25:46 +00:00
2023-07-18 21:53:34 -04:00
2023-07-03 09:12:15 +02:00
2023-09-10 21:20:36 +00:00
2023-08-25 19:05:38 +00:00
2023-08-28 03:16:48 -07:00
2023-08-04 13:17:39 +02:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-08-20 13:22:39 +00:00
2023-07-10 20:09:26 +00:00
2023-08-01 16:51:20 +00:00
2023-08-14 21:43:56 +00:00
2023-07-10 20:09:26 +00:00
2023-09-10 21:20:36 +00:00
2023-07-10 20:09:26 +00:00
2023-08-26 19:35:54 +00:00
2023-09-10 21:20:36 +00:00
2023-08-26 19:25:46 +00:00
2023-07-07 16:02:24 +00:00
2023-07-07 16:02:24 +00:00
2023-07-10 20:09:26 +00:00
2023-08-26 01:07:05 +00:00
2023-07-29 11:42:50 +02:00