diff options
| author | José manuel Barroso Galindo <theypsilon@gmail.com> | 2016-08-10 00:07:42 +0700 |
|---|---|---|
| committer | José manuel Barroso Galindo <theypsilon@gmail.com> | 2016-08-10 00:07:42 +0700 |
| commit | 0e8ec4333c969bfa81231e54aa6e8ef203e87987 (patch) | |
| tree | e254642d3a8cd716d5c576d589b60633b18c60e6 /src/test/compile-fail/liveness-assign-imm-local-with-init.rs | |
| parent | 877dfeb572e330026fc4b4114f16a411c44dc328 (diff) | |
| download | rust-0e8ec4333c969bfa81231e54aa6e8ef203e87987.tar.gz rust-0e8ec4333c969bfa81231e54aa6e8ef203e87987.zip | |
Update error message E0384 to new format
Part of #35233 Fixes #35184
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 | 3 |
1 files changed, 2 insertions, 1 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 28218bff60d..2468c91f34b 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 @@ -9,9 +9,10 @@ // except according to those terms. fn test() { - let v: isize = 1; //~ NOTE prior assignment occurs here + let v: isize = 1; //~ NOTE first assignment v.clone(); v = 2; //~ ERROR re-assignment of immutable variable + //~| NOTE re-assignment of immutable v.clone(); } |
