This commit is contained in:
Esteban Küber 2017-07-20 21:28:53 -07:00
parent e99d309c56
commit 09c712dae3

View File

@ -11,7 +11,7 @@ error[E0596]: cannot borrow immutable argument `self` as mutable
--> $DIR/issue-31424.rs:23:15
|
22 | fn bar(self: &mut Self) {
| ---- consider changing this to `mut self`
| --------------- consider changing this to `mut self: &mut Self`
23 | (&mut self).bar();
| ^^^^ cannot borrow mutably