]> git.lizzy.rs Git - rust.git/blob - tests/ui/nested-ty-params.rs
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / 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() {}