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

12 lines
423 B
Plaintext
Raw Normal View History

error[E0389]: cannot borrow data mutably in a `&` reference
--> $DIR/issue-38147-1.rs:27:9
|
26 | fn f(&self) {
| ----- use `&mut self` here to make mutable
2017-11-20 06:13:27 -06:00
27 | self.s.push('x'); //~ ERROR cannot borrow data mutably
| ^^^^^^ assignment into an immutable reference
error: aborting due to previous error
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0389"