summaryrefslogtreecommitdiffstats
path: root/vendor/anyhow/tests/ui/temporary-value.stderr
blob: 4e4115fc32b8ca1bb6ae74447e56723823223aba (plain)
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 which is freed while still in use
  |             temporary value is freed at the end of this statement
  |             argument requires that borrow lasts for `'static`