rust/src/test/ui/issues/issue-17758.nll.stderr
Basile Desloges b01550a718 Update tests
2018-09-01 12:58:18 +02:00

11 lines
321 B
Plaintext

error: borrowed data escapes outside of function
--> $DIR/issue-17758.rs:17:9
|
LL | fn bar(&self) {
| ----- `self` is a reference that is only valid in the function body
LL | self.foo();
| ^^^^^^^^^^ `self` escapes the function body here
error: aborting due to previous error