]> git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch10-generic-types-traits-and-lifetimes/listing-10-16/output.txt
New upstream version 1.67.1+dfsg1
[rustc.git] / src / doc / book / listings / ch10-generic-types-traits-and-lifetimes / listing-10-16 / output.txt
1 $ cargo run
2 Compiling chapter10 v0.1.0 (file:///projects/chapter10)
3 error[E0597]: `x` does not live long enough
4 --> src/main.rs:6:13
5 |
6 6 | r = &x;
7 | ^^ borrowed value does not live long enough
8 7 | }
9 | - `x` dropped here while still borrowed
10 8 |
11 9 | println!("r: {}", r);
12 | - borrow later used here
13
14 For more information about this error, try `rustc --explain E0597`.
15 error: could not compile `chapter10` due to previous error