]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nested-ty-params.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[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() {}