summary refs log tree commit diff
path: root/tests/ui/nested-ty-params.rs
blob: c00c3bc3372308876c268cdcb8609687ef7dfd8b (plain)
1
2
3
4
5
6
7
8
9
fn hd<U>(v: Vec<U> ) -> U {
    fn hd1(w: [U]) -> U { return w[0]; }
    //~^ ERROR can't use generic parameters from outer item
    //~| ERROR can't use generic parameters from outer item

    return hd1(v);
}

fn main() {}