about summary refs log tree commit diff
path: root/src/test/ui/generator/retain-resume-ref.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generator/retain-resume-ref.stderr')
-rw-r--r--src/test/ui/generator/retain-resume-ref.stderr7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/test/ui/generator/retain-resume-ref.stderr b/src/test/ui/generator/retain-resume-ref.stderr
index bc715c7030e..e33310d12d9 100644
--- a/src/test/ui/generator/retain-resume-ref.stderr
+++ b/src/test/ui/generator/retain-resume-ref.stderr
@@ -4,10 +4,9 @@ error[E0499]: cannot borrow `thing` as mutable more than once at a time
 LL |     gen.as_mut().resume(&mut thing);
    |                         ---------- first mutable borrow occurs here
 LL |     gen.as_mut().resume(&mut thing);
-   |                         ^^^^^^^^^^ second mutable borrow occurs here
-LL |
-LL | }
-   | - first borrow might be used here, when `gen` is dropped and runs the destructor for generator
+   |                  ------ ^^^^^^^^^^ second mutable borrow occurs here
+   |                  |
+   |                  first borrow later used by call
 
 error: aborting due to previous error