rust/src/test/compile-fail/nested-ty-params.rs
Marijn Haverbeke fc6b7c8b38 Reformat for new mode syntax, step 1
Long lines were fixed in a very crude way, as I'll be following up
with another reformat in a bit.
2011-09-12 12:04:14 +02:00

7 lines
142 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);
}