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