aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/writealias.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-11-02 15:24:46 -0700
committerGraydon Hoare <[email protected]>2010-11-02 15:24:46 -0700
commit7db115834f24eb9d9ccbd2468c9145fdf86be514 (patch)
tree5e5e1463ba1201524c6d10690c0982f4b168ba9f /src/test/run-pass/writealias.rs
parentFirst pass on splitting stratum and opacity off of effects. WIP. (diff)
downloadrust-7db115834f24eb9d9ccbd2468c9145fdf86be514.tar.xz
rust-7db115834f24eb9d9ccbd2468c9145fdf86be514.zip
Split out stratum-checking pass, implement more-strict (overly aggressive) impure-effect checking.
Diffstat (limited to 'src/test/run-pass/writealias.rs')
-rw-r--r--src/test/run-pass/writealias.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/writealias.rs b/src/test/run-pass/writealias.rs
index 8bf8140f..551fb7d3 100644
--- a/src/test/run-pass/writealias.rs
+++ b/src/test/run-pass/writealias.rs
@@ -2,11 +2,11 @@
type point = rec(int x, int y, mutable int z);
-fn f(& mutable point p) {
+impure fn f(& mutable point p) {
p.z = 13;
}
-fn main() {
+impure fn main() {
let point x = rec(x=10, y=11, mutable z=12);
f(x);
check (x.z == 13);