2019-02-07 07:59:59 -06:00
|
|
|
// error-pattern:can't use generic parameters from outer function
|
2014-03-05 16:02:44 -06:00
|
|
|
fn hd<U>(v: Vec<U> ) -> U {
|
2012-08-01 19:30:05 -05:00
|
|
|
fn hd1(w: [U]) -> U { return w[0]; }
|
2011-08-10 11:27:22 -05:00
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
return hd1(v);
|
2011-08-10 11:27:22 -05:00
|
|
|
}
|
2018-08-22 18:19:38 -05:00
|
|
|
|
|
|
|
fn main() {}
|