]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0499.stderr
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / E0499.stderr
1 error[E0499]: cannot borrow `i` as mutable more than once at a time
2   --> $DIR/E0499.rs:4:17
3    |
4 LL |     let mut x = &mut i;
5    |                 ------ first mutable borrow occurs here
6 LL |     let mut a = &mut i;
7    |                 ^^^^^^ second mutable borrow occurs here
8 LL |     a.use_mut();
9 LL |     x.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`.