]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | error[E0596]: cannot borrow immutable local variable `x` as mutable |
0731742a | 2 | --> $DIR/issue-37139.rs:12:23 |
476ff2be | 3 | | |
0531ce1d | 4 | LL | test(&mut x); //~ ERROR cannot borrow immutable |
476ff2be SL |
5 | | ^ |
6 | | | | |
476ff2be | 7 | | cannot reborrow mutably |
3b2f2976 | 8 | | try removing `&mut` here |
476ff2be | 9 | |
041b39d2 | 10 | error: aborting due to previous error |
476ff2be | 11 | |
0531ce1d | 12 | For more information about this error, try `rustc --explain E0596`. |