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

12 lines
376 B
Plaintext
Raw Normal View History

error[E0389]: cannot borrow data mutably in a `&` reference
2018-12-25 09:56:47 -06:00
--> $DIR/issue-38147-1.rs:17:9
|
2018-02-22 18:42:32 -06:00
LL | fn f(&self) {
| ----- use `&mut self` here to make mutable
2019-03-09 06:03:44 -06:00
LL | self.s.push('x');
| ^^^^^^ assignment into an immutable reference
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0389`.