fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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