aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/foreach-nested.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-12-13 09:25:19 -0800
committerGraydon Hoare <[email protected]>2010-12-13 09:25:19 -0800
commit734c1909188c7b505ca9a0b88bda561a08cf45fd (patch)
tree0ba475271d0709ad657cc8853be8c5e3847bdd2f /src/test/run-pass/foreach-nested.rs
parentrustc: Typecheck "alt" expressions and patterns (diff)
downloadrust-734c1909188c7b505ca9a0b88bda561a08cf45fd.tar.xz
rust-734c1909188c7b505ca9a0b88bda561a08cf45fd.zip
Syntax tweak: move 'mutable' from pseudo-ty-param on vec ctor to low-precedence prefix inside paren.
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 1da1d05b..9d775123 100644
--- a/src/test/run-pass/foreach-nested.rs
+++ b/src/test/run-pass/foreach-nested.rs
@@ -6,7 +6,7 @@ iter two() -> int {
}
impure fn main() {
- let vec[mutable int] a = vec[mutable](-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()) {