]> git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/issue-45983.stderr
New upstream version 1.25.0+dfsg1
[rustc.git] / src / test / ui / borrowck / issue-45983.stderr
1 error: borrowed data cannot be stored outside of its closure
2 --> $DIR/issue-45983.rs:17:27
3 |
4 16 | let x = None;
5 | - borrowed data cannot be stored into here...
6 17 | give_any(|y| x = Some(y));
7 | --- ^ cannot be stored outside of its closure
8 | |
9 | ...because it cannot outlive this closure
10
11 error: aborting due to previous error
12