]> git.proxmox.com Git - rustc.git/blame - tests/ui/error-codes/E0502.stderr
New upstream version 1.73.0+dfsg1
[rustc.git] / tests / ui / error-codes / E0502.stderr
CommitLineData
48663c56
XL
1error[E0502]: cannot borrow `*a` as mutable because it is also borrowed as immutable
2 --> $DIR/E0502.rs:4:5
2c00a5a8 3 |
0531ce1d 4LL | let ref y = a;
2c00a5a8 5 | ----- immutable borrow occurs here
532ac7d7 6LL | bar(a);
48663c56 7 | ^^^^^^ mutable borrow occurs here
94b46f34 8LL | y.use_ref();
add651ee 9 | - immutable borrow later used here
2c00a5a8
XL
10
11error: aborting due to previous error
12
0531ce1d 13For more information about this error, try `rustc --explain E0502`.