]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nested-ty-params.rs
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
[rust.git] / src / test / ui / nested-ty-params.rs
1 // error-pattern:can't use generic parameters from outer function
2 fn hd<U>(v: Vec<U> ) -> U {
3     fn hd1(w: [U]) -> U { return w[0]; }
4
5     return hd1(v);
6 }
7
8 fn main() {}