]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nested-ty-params.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[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() {}