fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
321 B10 linesraw
1error[E0521]: borrowed data escapes outside of method
2  --> $DIR/issue-17758.rs:7:9
3   |
4LL |     fn bar(&self) {
5   |            ----- `self` is a reference that is only valid in the method body
6LL |         self.foo();
7   |         ^^^^^^^^^^ `self` escapes the method body here
8
9error: aborting due to previous error
10