]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-52534-2.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.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`.