diff options
Diffstat (limited to 'src/test/compile-fail/liveness-assign-imm-local-with-init.rs')
| -rw-r--r-- | src/test/compile-fail/liveness-assign-imm-local-with-init.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/liveness-assign-imm-local-with-init.rs b/src/test/compile-fail/liveness-assign-imm-local-with-init.rs index 045ce5baa46..1b46e97dbd2 100644 --- a/src/test/compile-fail/liveness-assign-imm-local-with-init.rs +++ b/src/test/compile-fail/liveness-assign-imm-local-with-init.rs @@ -1,7 +1,7 @@ fn test() { - let v: int = 1; //! NOTE prior assignment occurs here + let v: int = 1; //~ NOTE prior assignment occurs here copy v; - v = 2; //! ERROR re-assignment of immutable variable + v = 2; //~ ERROR re-assignment of immutable variable copy v; } |
