]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mut/mut-cant-alias.stderr
Rollup merge of #67749 - gilescope:keyword-in, r=Dylan-DPC
[rust.git] / src / test / ui / mut / mut-cant-alias.stderr
1 error[E0499]: cannot borrow `b` as mutable more than once at a time
2   --> $DIR/mut-cant-alias.rs:9:20
3    |
4 LL |     let b1 = &mut *b;
5    |                    - first mutable borrow occurs here
6 LL |     let b2 = &mut *b;
7    |                    ^ second mutable borrow occurs here
8 LL |     b1.use_mut();
9    |     -- first borrow later used here
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0499`.