1 error[E0401]: can't use generic parameters from outer function
2 --> $DIR/nested-ty-params.rs:3:16
4 LL | fn hd<U>(v: Vec<U> ) -> U {
5 | - type parameter from outer function
6 LL | fn hd1(w: [U]) -> U { return w[0]; }
7 | - ^ use of generic parameter from outer function
9 | help: try using a local generic parameter instead: `<U>`
11 error[E0401]: can't use generic parameters from outer function
12 --> $DIR/nested-ty-params.rs:3:23
14 LL | fn hd<U>(v: Vec<U> ) -> U {
15 | - type parameter from outer function
16 LL | fn hd1(w: [U]) -> U { return w[0]; }
17 | - ^ use of generic parameter from outer function
19 | help: try using a local generic parameter instead: `<U>`
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0401`.