2012-01-09 17:49:06 +01:00
|
|
|
// error-pattern:attempt to use a type argument out of scope
|
2011-09-12 11:27:30 +02:00
|
|
|
fn hd<U>(v: [U]) -> U {
|
|
|
|
fn hd1(w: [U]) -> U { ret w[0]; }
|
2011-08-10 09:27:22 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
ret hd1(v);
|
2011-08-10 09:27:22 -07:00
|
|
|
}
|