]> git.proxmox.com Git - rustc.git/blob - vendor/anyhow/tests/ui/temporary-value.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / vendor / anyhow / tests / ui / temporary-value.stderr
1 error[E0716]: temporary value dropped while borrowed
2 --> $DIR/temporary-value.rs:4:22
3 |
4 4 | let _ = anyhow!(&String::new());
5 | ---------^^^^^^^^^^^^^-- temporary value is freed at the end of this statement
6 | | |
7 | | creates a temporary which is freed while still in use
8 | argument requires that borrow lasts for `'static`