]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-51117.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / borrowck / issue-51117.stderr
1 error[E0499]: cannot borrow `*bar` as mutable more than once at a time
2   --> $DIR/issue-51117.rs:10:13
3    |
4 LL |         Some(baz) => {
5    |              --- first mutable borrow occurs here
6 LL |             bar.take(); //~ ERROR cannot borrow
7    |             ^^^ second mutable borrow occurs here
8 ...
9 LL |     }
10    |     - first borrow ends here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0499`.