7 lines
143 B
Rust
7 lines
143 B
Rust
// error-pattern:attempt to use a type argument out of scope
|
|
fn hd<U>(v: ~[U]) -> U {
|
|
fn hd1(w: [U]) -> U { ret w[0]; }
|
|
|
|
ret hd1(v);
|
|
}
|