2 Compiling chapter10 v0.1.0 (file:///projects/chapter10)
3 error[E0597]: `x` does not live long enough
7 | ^^ borrowed value does not live long enough
9 | - `x` dropped here while still borrowed
11 9 | println!("r: {}", r);
12 | - borrow later used here
14 For more information about this error, try `rustc --explain E0597`.
15 error: could not compile `chapter10` due to previous error