]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17758.nll.stderr
Auto merge of #53527 - Emerentius:test_all, r=nrc
[rust.git] / src / test / ui / issues / issue-17758.nll.stderr
1 error: borrowed data escapes outside of function
2   --> $DIR/issue-17758.rs:17:9
3    |
4 LL |     fn bar(&self) {
5    |            ----- `self` is a reference that is only valid in the function body
6 LL |         self.foo();
7    |         ^^^^^^^^^^ `self` escapes the function body here
8
9 error: aborting due to previous error
10