]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/issue-51117.nll.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / borrowck / issue-51117.nll.stderr
CommitLineData
83c7162d
XL
1error[E0499]: cannot borrow `*bar` as mutable more than once at a time
2 --> $DIR/issue-51117.rs:20:13
3 |
4LL | Some(baz) => {
5 | --- first mutable borrow occurs here
6LL | bar.take(); //~ ERROR cannot borrow
7 | ^^^ second mutable borrow occurs here
8LL | drop(baz);
0bf4aa26 9 | --- first borrow later used here
83c7162d
XL
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0499`.