summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.stderr')
-rw-r--r--src/test/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.stderr b/src/test/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.stderr
new file mode 100644
index 000000000..830f6bc99
--- /dev/null
+++ b/src/test/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.stderr
@@ -0,0 +1,12 @@
+error[E0499]: cannot borrow `*self` as mutable more than once at a time
+ --> $DIR/unboxed-closures-recursive-fn-using-fn-mut.rs:22:21
+ |
+LL | (self.func)(self, arg)
+ | ----------- ^^^^ second mutable borrow occurs here
+ | |
+ | first mutable borrow occurs here
+ | first borrow later used by call
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0499`.