summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/issue-45199.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/borrowck/issue-45199.rs')
-rw-r--r--tests/ui/borrowck/issue-45199.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/borrowck/issue-45199.rs b/tests/ui/borrowck/issue-45199.rs
index ded46e56e..6a6b25541 100644
--- a/tests/ui/borrowck/issue-45199.rs
+++ b/tests/ui/borrowck/issue-45199.rs
@@ -5,6 +5,7 @@ fn test_drop_replace() {
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
+ //~| NOTE in this expansion of desugaring of drop and replace
}
fn test_call() {
@@ -13,12 +14,14 @@ fn test_call() {
//~| SUGGESTION mut b
b = Box::new(2); //~ ERROR cannot assign twice to immutable variable `b`
//~| NOTE cannot assign twice to immutable
+ //~| NOTE in this expansion of desugaring of drop and replace
}
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
+ //~| NOTE in this expansion of desugaring of drop and replace
}
fn main() {}