]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2008-non-exhaustive/borrowck-non-exhaustive.stderr
Auto merge of #103894 - mati865:gnullvm-libunwind-changes, r=thomcc
[rust.git] / src / test / ui / rfc-2008-non-exhaustive / borrowck-non-exhaustive.stderr
1 error[E0503]: cannot use `x` because it was mutably borrowed
2   --> $DIR/borrowck-non-exhaustive.rs:12:11
3    |
4 LL |     let y = &mut x;
5    |             ------ borrow of `x` occurs here
6 LL |     match x {
7    |           ^ use of borrowed `x`
8 ...
9 LL |     drop(y);
10    |          - borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0503`.