summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/issue-45199.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/borrowck/issue-45199.rs')
-rw-r--r--src/test/ui/borrowck/issue-45199.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/ui/borrowck/issue-45199.rs b/src/test/ui/borrowck/issue-45199.rs
deleted file mode 100644
index ded46e56e..000000000
--- a/src/test/ui/borrowck/issue-45199.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-fn test_drop_replace() {
- let b: Box<isize>;
- //~^ HELP consider making this binding mutable
- //~| SUGGESTION mut b
- b = Box::new(1); //~ NOTE first assignment
- b = Box::new(2); //~ ERROR cannot assign twice to immutable variable `b`
- //~| NOTE cannot assign twice to immutable
-}
-
-fn test_call() {
- let b = Box::new(1); //~ NOTE first assignment
- //~| HELP consider making this binding mutable
- //~| SUGGESTION mut b
- b = Box::new(2); //~ ERROR cannot assign twice to immutable variable `b`
- //~| NOTE cannot assign twice to immutable
-}
-
-fn test_args(b: Box<i32>) { //~ HELP consider making this binding mutable
- //~| SUGGESTION mut b
- b = Box::new(2); //~ ERROR cannot assign to immutable argument `b`
- //~| NOTE cannot assign to immutable argument
-}
-
-fn main() {}