summary refs log tree commit diff
path: root/src/test/compile-fail/nested-ty-params.rs
blob: c8d08ad320d8382b4daf19466b8cfea2cc7d4315 (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);
}