diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-22 17:58:50 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-26 21:29:33 -0700 |
| commit | 0d52b22e7bd554464144e0a037285f62ddbd9eb2 (patch) | |
| tree | 310d55925f7b6d1f4df6f20bcff378dead8470e9 /src/test/compile-fail/vec-concat-bug.rs | |
| parent | 5df1aaab9835795bd0ef22d795d57039b703fb21 (diff) | |
| download | rust-0d52b22e7bd554464144e0a037285f62ddbd9eb2.tar.gz rust-0d52b22e7bd554464144e0a037285f62ddbd9eb2.zip | |
libcore: Change `[const T]` to `const [T]` everywhere
Diffstat (limited to 'src/test/compile-fail/vec-concat-bug.rs')
| -rw-r--r-- | src/test/compile-fail/vec-concat-bug.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/test/compile-fail/vec-concat-bug.rs b/src/test/compile-fail/vec-concat-bug.rs deleted file mode 100644 index 478e01ccd04..00000000000 --- a/src/test/compile-fail/vec-concat-bug.rs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2012 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -fn concat<T:Copy>(v: ~[const ~[const T]]) -> ~[T] { - let mut r = ~[]; - - // Earlier versions of our type checker accepted this: - vec::each(v, |inner: &~[T]| { - //~^ ERROR values differ in mutability - r += *inner; true - }); - - return r; -} - -fn main() {} |
