diff options
| author | Carol (Nichols || Goulding) <carol.nichols@gmail.com> | 2017-10-25 11:29:14 -0400 |
|---|---|---|
| committer | Carol (Nichols || Goulding) <carol.nichols@gmail.com> | 2017-10-25 11:29:52 -0400 |
| commit | 0e46cf4db4fdb8b2fd8cc0dde2425a16d478d8ed (patch) | |
| tree | a06736d547d86372ae9aa12ddab4e4915d580530 /src/test/compile-fail/liveness-assign-imm-local-with-init.rs | |
| parent | b2478052f88db8c8526ee2dc4a382da91eefc76c (diff) | |
| download | rust-0e46cf4db4fdb8b2fd8cc0dde2425a16d478d8ed.tar.gz rust-0e46cf4db4fdb8b2fd8cc0dde2425a16d478d8ed.zip | |
Reword to avoid using either re-assignment or reassignment in errors
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 2468c91f34b..f35c1c69acd 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 @@ -11,8 +11,8 @@ fn test() { let v: isize = 1; //~ NOTE first assignment v.clone(); - v = 2; //~ ERROR re-assignment of immutable variable - //~| NOTE re-assignment of immutable + v = 2; //~ ERROR cannot assign twice to immutable variable + //~| NOTE cannot assign twice to immutable v.clone(); } |
