1error[E0716]: temporary value dropped while borrowed 2 --> tests/ui/temporary-value.rs:4:22 3 | 44 | let _ = anyhow!(&String::new()); 5 | ---------^^^^^^^^^^^^^- 6 | | | 7 | | creates a temporary value which is freed while still in use 8 | temporary value is freed at the end of this statement 9 | argument requires that borrow lasts for `'static` 10