about summary refs log tree commit diff
path: root/src/test/compile-fail/nested-ty-params.rs
blob: a78546e0412eb5dbcc9454e61d3f8b62f34ba497 (plain)
1
2
3
4
5
6
// error-pattern:Attempt to use a type argument out of scope
fn hd<U>(v: [U]) -> U {
    fn hd1(w: [U]) -> U { ret w[0]; }

    ret hd1(v);
}