2012-03-22 22:06:01 -05:00
|
|
|
fn concat<T: copy>(v: [const [const T]]) -> [T] {
|
|
|
|
let mut r = [];
|
|
|
|
|
|
|
|
// Earlier versions of our type checker accepted this:
|
2012-04-10 19:16:48 -05:00
|
|
|
vec::iter(v) {|&&inner: [T]|
|
|
|
|
//!^ ERROR values differ in mutability
|
|
|
|
//!^^ ERROR values differ in mutability
|
2012-03-22 22:06:01 -05:00
|
|
|
r += inner;
|
|
|
|
}
|
|
|
|
|
|
|
|
ret r;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|