blob: c00c3bc3372308876c268cdcb8609687ef7dfd8b [file] [log] [blame]
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() {}