diff options
Diffstat (limited to 'src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.rs')
-rw-r--r-- | src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.rs b/src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.rs deleted file mode 100644 index 1752d9690..000000000 --- a/src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.rs +++ /dev/null @@ -1,12 +0,0 @@ -fn test() { - let v: isize; - //~^ HELP consider making this binding mutable - //~| SUGGESTION mut v - v = 2; //~ NOTE first assignment - v += 1; //~ ERROR cannot assign twice to immutable variable `v` - //~| NOTE cannot assign twice to immutable - v.clone(); -} - -fn main() { -} |