Files
rust/tests/ui/error-codes
Esteban Küber f6938709c8 Point at inner item when using outer item type param
```
error[E0401]: can't use generic parameters from outer item
  --> $DIR/E0401.rs:4:39
   |
LL | fn foo<T>(x: T) {
   |        - type parameter from outer item
LL |     fn bfnr<U, V: Baz<U>, W: Fn()>(y: T) {
   |        ----                           ^ use of generic parameter from outer item
   |        |
   |        generic parameter used in this inner function
   |
help: try introducing a local generic parameter here
   |
LL |     fn bfnr<T, U, V: Baz<U>, W: Fn()>(y: T) {
   |             ++
```
2025-11-01 18:29:46 +00:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-06-13 01:16:36 +02:00
2025-06-13 01:16:36 +02:00
…
…
…
…
…
…
…
2025-08-11 16:58:21 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-08-27 20:25:18 +02:00
2025-08-27 20:25:18 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-06-06 20:52:34 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
2025-06-06 20:52:34 +00:00
…
…
…
…
…
2025-05-28 15:14:34 +01:00
2025-05-28 15:14:34 +01:00
…
…
2025-08-14 18:18:42 +02:00
2025-09-18 09:16:58 -04:00
…
…
…
…
…
…
…
…
…
2025-07-13 13:50:01 +00:00
…
…