]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-42344.stderr
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[rust.git] / src / test / ui / borrowck / issue-42344.stderr
1 error[E0596]: cannot borrow `*TAB[_]` as mutable, as `TAB` is an immutable static item
2   --> $DIR/issue-42344.rs:4:5
3    |
4 LL |     TAB[0].iter_mut();
5    |     ^^^^^^^^^^^^^^^^^ cannot borrow as mutable
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0596`.