rust/src/test/ui/did_you_mean/issue-38147-2.stderr

13 lines
411 B
Plaintext
Raw Normal View History

error[E0596]: cannot borrow borrowed content `*self.s` of immutable binding as mutable
--> $DIR/issue-38147-2.rs:17:9
|
12 | s: &'a String
| ---------- use `&'a mut String` here to make mutable
...
17 | self.s.push('x');
| ^^^^^^ cannot borrow as mutable
error: aborting due to previous error
2018-02-19 20:40:25 +00:00
If you want more information on this error, try using "rustc --explain E0596"