blob: 075c141ed7af6f61d4cc074deadcd9dfe454ac18 [file]
error[E0521]: borrowed data escapes outside of associated function
--> $DIR/issue-17758.rs:7:9
|
LL | fn bar(&self) {
| ----- `self` is a reference that is only valid in the associated function body
LL | self.foo();
| ^^^^^^^^^^ `self` escapes the associated function body here
error: aborting due to previous error
For more information about this error, try `rustc --explain E0521`.