aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/foreach-nested.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-23 15:29:17 -0700
committerGraydon Hoare <[email protected]>2010-07-23 15:29:17 -0700
commit44e2dc2789a8b3a19024ec67e25f8bd4d28afdce (patch)
treeef2c5effdfa8ce4a1efce2ab8c3a142a574acbf4 /src/test/run-pass/foreach-nested.rs
parentAdd test for writing-through-uninit bug (reported on IRC by jrmuizel), plus f... (diff)
downloadrust-44e2dc2789a8b3a19024ec67e25f8bd4d28afdce.tar.xz
rust-44e2dc2789a8b3a19024ec67e25f8bd4d28afdce.zip
Improve mutability checking. Closes #118.
Diffstat (limited to 'src/test/run-pass/foreach-nested.rs')
-rw-r--r--src/test/run-pass/foreach-nested.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/foreach-nested.rs b/src/test/run-pass/foreach-nested.rs
index 848adb26..6287477a 100644
--- a/src/test/run-pass/foreach-nested.rs
+++ b/src/test/run-pass/foreach-nested.rs
@@ -6,7 +6,7 @@ iter two() -> int {
}
fn main() {
- let vec[int] a = vec(-1, -1, -1, -1);
+ let vec[mutable int] a = vec[mutable](-1, -1, -1, -1);
let int p = 0;
for each (int i in two()) {