rust/src/test/compile-fail/nested-ty-params.rs
Marijn Haverbeke 6b20e8c88b Fix error message case in two cfail test
I had made the error consistent with other errors, but forgot to
also change the tests.
2012-01-09 17:51:39 +01: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);
}