]> git.lizzy.rs Git - rust.git/blob - tests/ui/codemap_tests/issue-11715.stderr
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / codemap_tests / issue-11715.stderr
1 error[E0499]: cannot borrow `x` as mutable more than once at a time
2   --> $DIR/issue-11715.rs:5:13
3    |
4 LL |     let y = &mut x;
5    |             ------ first mutable borrow occurs here
6 LL |     let z = &mut x;
7    |             ^^^^^^ second mutable borrow occurs here
8 LL |     z.use_mut();
9 LL |     y.use_mut();
10    |     ----------- first borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0499`.