Skip to content
Myr

temporary-value.stderr

This file

Path

tests/ui/temporary-value.stderr

15 lines · 628 bytes

Last changed by

Update ui test suite to nightly-2025-10-01David Tolnaybefore adoption0df99b4

History of this file

Take it

1error[E0716]: temporary value dropped while borrowed2 --> tests/ui/temporary-value.rs:4:223  |44 |     let _ = anyhow!(&String::new());5  |             ---------^^^^^^^^^^^^^-6  |             |        |7  |             |        creates a temporary value which is freed while still in use8  |             temporary value is freed at the end of this statement9  |             argument requires that borrow lasts for `'static`10  |11note: requirement that the value outlives `'static` introduced here12 --> src/kind.rs13  |14  |         M: Display + Debug + Send + Sync + 'static,15  |                                            ^^^^^^^