diff options
| author | Michael Sullivan <sully@msully.net> | 2012-07-14 13:55:41 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2012-07-14 14:30:48 -0700 |
| commit | 6822ec3eb4cb39a3a075b8373fcc974424ef63e8 (patch) | |
| tree | 44f2e14581a43c52e77f45f9101f39e999537b88 /src/test/compile-fail/mutable-huh-variance-vec4.rs | |
| parent | 7b2f4755f3de2af6a8038ca960801853b86eb7ad (diff) | |
| download | rust-6822ec3eb4cb39a3a075b8373fcc974424ef63e8.tar.gz rust-6822ec3eb4cb39a3a075b8373fcc974424ef63e8.zip | |
Treat bare vector and string literals as fixed length vecs. Closes #2922.
Diffstat (limited to 'src/test/compile-fail/mutable-huh-variance-vec4.rs')
| -rw-r--r-- | src/test/compile-fail/mutable-huh-variance-vec4.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/mutable-huh-variance-vec4.rs b/src/test/compile-fail/mutable-huh-variance-vec4.rs index f234bc677c4..b7bf33570ba 100644 --- a/src/test/compile-fail/mutable-huh-variance-vec4.rs +++ b/src/test/compile-fail/mutable-huh-variance-vec4.rs @@ -8,18 +8,18 @@ fn main() { let x = ~[mut ~[mut 0]]; fn f(&&v: ~[mut ~[int]]) { - v[0] = [3] + v[0] = ~[3] } fn g(&&v: ~[const ~[const int]]) { } fn h(&&v: ~[mut ~[mut int]]) { - v[0] = [mut 3] + v[0] = ~[mut 3] } fn i(&&v: ~[mut ~[const int]]) { - v[0] = [mut 3] + v[0] = ~[mut 3] } fn j(&&v: ~[~[const int]]) { |
