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