]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` reference |
0731742a | 2 | --> $DIR/issue-38147-3.rs:7:9 |
32a655c1 | 3 | | |
0531ce1d | 4 | LL | s: &'a String |
48663c56 | 5 | | ---------- help: consider changing this to be mutable: `&'a mut String` |
32a655c1 | 6 | ... |
0531ce1d | 7 | LL | self.s.push('x'); |
c295e0f8 | 8 | | ^^^^^^^^^^^^^^^^ cannot borrow as mutable |
32a655c1 | 9 | |
041b39d2 | 10 | error: aborting due to previous error |
32a655c1 | 11 | |
0531ce1d | 12 | For more information about this error, try `rustc --explain E0596`. |