rust/src/test/ui/issues/issue-16683.nll.stderr
2020-03-12 15:47:36 -05:00

11 lines
352 B
Plaintext

error[E0521]: borrowed data escapes outside of associated function
--> $DIR/issue-16683.rs:4:9
|
LL | fn b(&self) {
| ----- `self` is a reference that is only valid in the associated function body
LL | self.a();
| ^^^^^^^^ `self` escapes the associated function body here
error: aborting due to previous error