diff options
| author | Graydon Hoare <[email protected]> | 2010-11-02 15:24:46 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-11-02 15:24:46 -0700 |
| commit | 7db115834f24eb9d9ccbd2468c9145fdf86be514 (patch) | |
| tree | 5e5e1463ba1201524c6d10690c0982f4b168ba9f /src/test/run-pass/writealias.rs | |
| parent | First pass on splitting stratum and opacity off of effects. WIP. (diff) | |
| download | rust-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.rs | 4 |
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); |