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 fileTake it
The walk stopped after 200 commits: lines older than 553ed38 point at it.
Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 1–9why, one step back1error[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`Update ui test suite to nightly-2025-10-01David Tolnaybefore adoption0df99b4
lines 10–15why, one step back10 |11note: requirement that the value outlives `'static` introduced here12 --> src/kind.rs13 |14 | M: Display + Debug + Send + Sync + 'static,15 | ^^^^^^^