rust/src/test/ui/issues/issue-16683.nll.stderr

12 lines
420 B
Plaintext
Raw Normal View History

2020-03-04 21:03:15 -06:00
error[E0521]: borrowed data escapes outside of associated function
--> $DIR/issue-16683.rs:4:9
|
LL | fn b(&self) {
2020-03-04 21:03:15 -06:00
| ----- `self` is a reference that is only valid in the associated function body
LL | self.a();
2020-03-04 21:03:15 -06:00
| ^^^^^^^^ `self` escapes the associated function body here
error: aborting due to previous error
2021-02-02 11:57:34 -06:00
For more information about this error, try `rustc --explain E0521`.