]>
Commit | Line | Data |
---|---|---|
49aad941 FG |
1 | error[E0499]: cannot borrow `*x` as mutable more than once at a time |
2 | --> $DIR/issue-110929-generator-conflict-error-ice.rs:9:9 | |
3 | | | |
4 | LL | let _c = || yield *&mut *x; | |
5 | | -- -- first borrow occurs due to use of `*x` in generator | |
6 | | | | |
7 | | first mutable borrow occurs here | |
8 | LL | || _ = &mut *x; | |
9 | | ^^ -- second borrow occurs due to use of `*x` in closure | |
10 | | | | |
11 | | second mutable borrow occurs here | |
12 | LL | | |
13 | LL | }; | |
14 | | - first borrow might be used here, when `_c` is dropped and runs the destructor for generator | |
15 | ||
16 | error: aborting due to previous error | |
17 | ||
18 | For more information about this error, try `rustc --explain E0499`. |