diff options
Diffstat (limited to 'tests/ui/borrowck/issue-51117.stderr')
-rw-r--r-- | tests/ui/borrowck/issue-51117.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/borrowck/issue-51117.stderr b/tests/ui/borrowck/issue-51117.stderr new file mode 100644 index 000000000..ef1a16ea9 --- /dev/null +++ b/tests/ui/borrowck/issue-51117.stderr @@ -0,0 +1,13 @@ +error[E0499]: cannot borrow `*bar` as mutable more than once at a time + --> $DIR/issue-51117.rs:10:13 + | +LL | Some(baz) => { + | --- first mutable borrow occurs here +LL | bar.take(); + | ^^^^^^^^^^ second mutable borrow occurs here +LL | drop(baz); + | --- first borrow later used here + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0499`. |