]> git.proxmox.com Git - rustc.git/blame - src/test/ui/did_you_mean/issue-38147-3.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / did_you_mean / issue-38147-3.stderr
CommitLineData
48663c56 1error[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 4LL | s: &'a String
48663c56 5 | ---------- help: consider changing this to be mutable: `&'a mut String`
32a655c1 6...
0531ce1d 7LL | self.s.push('x');
c295e0f8 8 | ^^^^^^^^^^^^^^^^ cannot borrow as mutable
32a655c1 9
041b39d2 10error: aborting due to previous error
32a655c1 11
0531ce1d 12For more information about this error, try `rustc --explain E0596`.