]> git.proxmox.com Git - rustc.git/blame - src/test/ui/did_you_mean/issue-38147-2.stderr
New upstream version 1.35.0+dfsg1
[rustc.git] / src / test / ui / did_you_mean / issue-38147-2.stderr
CommitLineData
ff7c6d11 1error[E0596]: cannot borrow borrowed content `*self.s` of immutable binding as mutable
0731742a 2 --> $DIR/issue-38147-2.rs:7:9
32a655c1 3 |
0531ce1d 4LL | s: &'a String
cc61c64b 5 | ---------- use `&'a mut String` here to make mutable
32a655c1 6...
0531ce1d 7LL | self.s.push('x');
32a655c1
SL
8 | ^^^^^^ cannot borrow as mutable
9
041b39d2 10error: aborting due to previous error
32a655c1 11
0531ce1d 12For more information about this error, try `rustc --explain E0596`.