summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/issue-82438-mut-without-upvar.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/closures/issue-82438-mut-without-upvar.stderr (renamed from src/test/ui/closures/issue-82438-mut-without-upvar.stderr)8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/ui/closures/issue-82438-mut-without-upvar.stderr b/tests/ui/closures/issue-82438-mut-without-upvar.stderr
index 802284b26..f0951b7d1 100644
--- a/src/test/ui/closures/issue-82438-mut-without-upvar.stderr
+++ b/tests/ui/closures/issue-82438-mut-without-upvar.stderr
@@ -1,11 +1,13 @@
error[E0596]: cannot borrow `c` as mutable, as it is not declared as mutable
--> $DIR/issue-82438-mut-without-upvar.rs:27:27
|
-LL | let c = |a, b, c, d| {};
- | - help: consider changing this to be mutable: `mut c`
-LL |
LL | A.f(participant_name, &mut c);
| ^^^^^^ cannot borrow as mutable
+ |
+help: consider changing this to be mutable
+ |
+LL | let mut c = |a, b, c, d| {};
+ | +++
error: aborting due to previous error