File: temporary-value.stderr

package info (click to toggle)
rust-anyhow 1.0.99-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 500 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (48)
1
2
3
4
5
6
7
8
9
error[E0716]: temporary value dropped while borrowed
 --> tests/ui/temporary-value.rs:4:22
  |
4 |     let _ = anyhow!(&String::new());
  |             ---------^^^^^^^^^^^^^-
  |             |        |
  |             |        creates a temporary value which is freed while still in use
  |             temporary value is freed at the end of this statement
  |             argument requires that borrow lasts for `'static`