summaryrefslogtreecommitdiffstats
path: root/tests/ui/coroutine/dropck-resume.stderr
blob: 028523978f9b88af34f02b346711dbbff45ba059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0502]: cannot borrow `y` as immutable because it is also borrowed as mutable
  --> $DIR/dropck-resume.rs:25:13
   |
LL |     let z = &mut y;
   |             ------ mutable borrow occurs here
...
LL |         r = y.as_ref().unwrap();
   |             ^ immutable borrow occurs here
LL |
LL |     }
   |     - mutable borrow might be used here, when `g` is dropped and runs the destructor for coroutine

error: aborting due to previous error

For more information about this error, try `rustc --explain E0502`.