]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-52534-2.stderr
Auto merge of #105145 - Ayush1325:sequential-remote-server, r=Mark-Simulacrum
[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:6:13
3    |
4 LL |         y = &x
5    |             ^^ borrowed value does not live long enough
6 LL |
7 LL |     }
8    |     - `x` dropped here while still borrowed
9 LL |
10 LL |     println!("{}", y);
11    |                    - borrow later used here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0597`.