summaryrefslogtreecommitdiffstats
path: root/vendor/anyhow/tests/ui/temporary-value.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/anyhow/tests/ui/temporary-value.stderr')
-rw-r--r--vendor/anyhow/tests/ui/temporary-value.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/anyhow/tests/ui/temporary-value.stderr b/vendor/anyhow/tests/ui/temporary-value.stderr
new file mode 100644
index 000000000..4e4115fc3
--- /dev/null
+++ b/vendor/anyhow/tests/ui/temporary-value.stderr
@@ -0,0 +1,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`