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