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