]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0596]: cannot borrow borrowed content `*self.s` of immutable binding as mutable |
0731742a | 2 | --> $DIR/issue-38147-2.rs:7:9 |
32a655c1 | 3 | | |
0531ce1d | 4 | LL | s: &'a String |
cc61c64b | 5 | | ---------- use `&'a mut String` here to make mutable |
32a655c1 | 6 | ... |
0531ce1d | 7 | LL | self.s.push('x'); |
32a655c1 SL |
8 | | ^^^^^^ cannot borrow as mutable |
9 | ||
041b39d2 | 10 | error: aborting due to previous error |
32a655c1 | 11 | |
0531ce1d | 12 | For more information about this error, try `rustc --explain E0596`. |