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