LL | fn get_bar(&self) -> Bar2 {
| -----
| |
- | `self` is declared here, outside of the function body
+ | `self` declared here, outside of the function body
| `self` is a reference that is only valid in the function body
LL | Bar2::new(&self)
| ^^^^^^^^^^^^^^^^ `self` escapes the function body here