Esteban Küber
44ece2e9ce
Point at inner item when using outer const param
```
error[E0401]: can't use generic parameters from outer item
--> $DIR/const-param-from-outer-fn.rs:3:9
|
LL | fn foo<const X: u32>() {
| - const parameter from outer item
LL | fn bar() -> u32 {
| --- generic parameter used in this inner function
LL | X
| ^ use of generic parameter from outer item
|
help: try introducing a local generic parameter here
|
LL | fn bar<X>() -> u32 {
| +++
```
2025-11-01 19:21:27 +00:00
..
2025-09-15 15:31:56 +00:00
2025-09-29 15:44:55 +10:00
2025-10-12 08:08:30 +00:00
2025-10-31 02:39:14 +01:00
2025-08-27 23:44:49 +02:00
2025-10-31 02:39:14 +01:00
2025-10-30 08:05:37 +00:00
2025-10-31 02:39:14 +01:00
2025-10-25 12:57:39 +02:00
2025-08-28 09:48:54 +00:00
2025-10-31 22:41:18 +11:00
2025-10-29 08:07:49 +01:00
2025-10-24 10:25:13 +00:00
2025-10-20 20:50:44 +00:00
2025-10-28 20:39:37 +11:00
2025-10-28 17:49:29 +01:00
2025-10-31 22:41:18 +11:00
2025-10-15 23:41:05 +02:00
2025-09-05 14:06:31 -04:00
2025-10-27 16:24:33 +00:00
2025-10-02 10:27:49 +02:00
2025-09-02 19:12:54 +10:00
2025-10-24 12:50:19 -06:00
2025-10-18 23:54:44 +02:00
2025-10-28 13:22:00 -07:00
2025-10-12 08:08:30 +00:00
2025-09-02 19:12:54 +10:00
2025-10-12 08:08:30 +00:00
2025-10-12 08:08:30 +00:00
2025-10-31 02:39:14 +01:00
2025-10-31 02:39:14 +01:00
2025-08-20 15:04:00 -07:00
2025-10-31 02:39:14 +01:00
2025-11-01 19:09:56 +00:00
2025-10-27 15:56:09 +00:00
2025-10-28 13:35:43 -07:00
2025-09-02 19:12:54 +10:00
2025-10-07 23:02:23 +01:00
2025-10-31 02:39:16 +01:00
2025-09-22 15:10:41 -04:00
2025-10-31 02:39:14 +01:00
2025-10-28 20:39:32 +11:00
2025-10-30 22:46:35 +08:00
2025-10-15 13:17:25 +01:00
2025-10-06 14:54:38 +00:00
2025-10-30 10:04:21 +00:00
2025-10-31 05:12:24 +00:00
2025-10-30 10:04:21 +00:00
2025-10-28 10:26:50 +11:00
2025-10-31 22:41:18 +11:00
2025-10-21 11:22:51 +00:00
2025-10-31 02:39:14 +01:00
2025-10-31 02:39:14 +01:00
2025-09-02 19:12:54 +10:00
2025-10-30 08:31:07 +01:00
2025-09-27 22:58:02 +01:00
2025-10-27 21:19:38 -05:00
2025-09-02 19:12:54 +10:00
2025-10-29 23:31:50 +00:00
2025-10-29 23:31:50 +00:00
2025-09-08 15:07:12 -07:00
2025-10-22 13:20:23 -04:00
2025-11-01 19:21:27 +00:00
2025-10-28 20:39:32 +11:00
2025-09-02 19:12:54 +10:00
2025-10-28 17:49:29 +01:00
2025-10-27 21:19:38 -05:00
2025-10-24 02:41:52 +00:00
2025-10-30 02:43:46 -04:00
2025-10-12 08:08:30 +00:00
2025-10-31 02:39:14 +01:00
2025-10-13 00:20:10 +00:00
2025-10-09 01:24:55 +08:00
2025-10-25 22:53:52 +02:00
2025-10-27 22:13:23 +11:00
2025-10-12 08:08:30 +00:00
2025-09-19 12:00:30 -07:00