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-06-20 22:54:12 +08:00
2023-07-07 09:00:50 +08:00
2023-07-07 09:00:50 +08:00
2023-07-07 09:00:50 +08:00
2023-07-15 22:02:16 +00:00
2023-07-15 22:02:16 +00:00
2023-09-10 23:06:14 +02:00
2023-04-12 22:50:10 +00:00
2023-07-29 00:19:50 +08:00
2023-07-29 00:19:50 +08:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-12 22:50:10 +00:00
2023-05-11 13:21:10 +01:00
2023-05-11 13:21:10 +01:00
2023-07-02 15:35:18 +08:00
2023-07-07 10:18:20 +08:00
2023-07-02 15:35:18 +08:00
2023-07-07 10:18:20 +08:00
2023-06-12 20:24:48 +08:00
2023-04-12 22:50:10 +00:00
2023-09-10 23:07:48 +02:00
2023-09-10 23:07:48 +02:00
2023-09-10 23:07:48 +02:00
2023-06-10 17:11:38 +08:00
2023-06-10 17:11:38 +08:00
2023-07-08 12:10:12 +09:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-05-08 17:58:01 -03:00
2023-05-08 17:58:01 -03:00
2023-05-08 17:58:01 -03:00
2023-05-08 17:58:01 -03:00
2023-04-12 22:50:10 +00:00
2023-08-28 17:47:37 -03:00
2023-08-28 17:47:37 -03:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-01-12 02:28:38 +00:00
2023-01-11 21:35:42 +00:00
2023-01-11 21:35:42 +00:00
2023-05-15 00:00:00 +00:00
2023-05-15 00:00:00 +00: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-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-01-11 21:30:10 +00:00
2023-06-14 01:38:35 +08:00
2023-03-20 03:22:31 +08:00
2023-03-20 03:22:31 +08:00
2023-02-27 09:22:51 -07:00
2023-02-27 09:22:51 -07:00
2023-06-14 01:38:35 +08:00
2023-06-14 01:38:35 +08:00
2023-05-10 22:35:01 +08:00
2023-05-10 22:35:01 +08:00
2023-05-17 16:59:39 +08:00
2023-05-17 16:59:39 +08:00
2023-05-19 22:11:54 +08:00
2023-05-19 22:11:54 +08:00
2023-06-15 18:19:09 +08:00
2023-06-15 18:19:09 +08:00
2023-06-15 18:19:09 +08:00
2023-07-18 09:52:08 +08:00
2023-07-18 09:52:08 +08:00
2023-07-18 09:52:08 +08:00
2023-08-05 15:58:26 +08:00
2023-04-12 22:50:10 +00:00
2023-01-30 20:12:19 +00:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-06-22 16:50:31 +00:00
2023-01-11 21:36:02 +00:00
2023-08-18 15:08:07 +01:00
2023-04-12 22:50:10 +00:00
2023-06-12 20:24:48 +08:00
2023-07-18 21:53:34 -04:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-05-10 22:35:01 +08:00
2023-09-07 05:19:43 +00:00
2023-09-07 05:18:54 +00:00
2023-09-07 05:18:54 +00:00
2023-02-28 07:55:19 +00:00
2023-02-28 07:55:19 +00:00
2023-02-28 07:55:19 +00:00
2023-02-28 07:55:19 +00:00
2023-02-28 07:55:19 +00:00
2023-02-28 07:55:19 +00:00
2023-02-28 07:55:19 +00:00
2023-02-28 07:55:19 +00:00
2023-04-04 14:10:13 +01:00
2023-04-04 14:10:13 +01:00
2023-08-02 15:30:24 +00:00
2023-08-02 15:30:24 +00:00
2023-07-13 08:26:02 +08:00
2023-07-13 08:26:02 +08:00
2023-07-18 09:52:08 +08:00
2023-04-12 22:50:10 +00:00
2023-04-12 22:50:10 +00:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00