2023-09-10 16:06:14 -05:00
|
|
|
error[E0401]: can't use generic parameters from outer item
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/nested-ty-params.rs:3:16
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | fn hd<U>(v: Vec<U> ) -> U {
|
2023-09-10 16:06:14 -05:00
|
|
|
| - type parameter from outer item
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | fn hd1(w: [U]) -> U { return w[0]; }
|
2023-09-10 16:06:14 -05:00
|
|
|
| - ^ use of generic parameter from outer item
|
2022-07-14 08:09:30 -05:00
|
|
|
| |
|
2023-09-10 16:06:14 -05:00
|
|
|
| help: try introducing a local generic parameter here: `<U>`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2023-09-10 16:06:14 -05:00
|
|
|
error[E0401]: can't use generic parameters from outer item
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/nested-ty-params.rs:3:23
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | fn hd<U>(v: Vec<U> ) -> U {
|
2023-09-10 16:06:14 -05:00
|
|
|
| - type parameter from outer item
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | fn hd1(w: [U]) -> U { return w[0]; }
|
2023-09-10 16:06:14 -05:00
|
|
|
| - ^ use of generic parameter from outer item
|
2022-07-14 08:09:30 -05:00
|
|
|
| |
|
2023-09-10 16:06:14 -05:00
|
|
|
| help: try introducing a local generic parameter here: `<U>`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-08-22 18:19:38 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-08-22 18:19:38 -05:00
|
|
|
For more information about this error, try `rustc --explain E0401`.
|