]> git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/issue-52534-2.stderr
Update upstream source from tag 'upstream/1.31.0_beta.4+dfsg1'
[rustc.git] / src / test / ui / nll / issue-52534-2.stderr
1 error[E0597]: `x` does not live long enough
2 --> $DIR/issue-52534-2.rs:19:9
3 |
4 LL | y = &x
5 | ^^^^^^ borrowed value does not live long enough
6 LL | }
7 | - `x` dropped here while still borrowed
8 LL |
9 LL | println!("{}", y);
10 | - borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0597`.